2002-04-30 Dick Porter <dick@ximian.com>
[mono.git] / mono / io-layer / wait-private.h
index 1f96f7c2b8ebbfaa6487d5623a40210044661421..2291c9852710646c5a72a0c63ff01ff670fb3648 100644 (file)
 
 #include "mono-mutex.h"
 
-typedef enum {
-       WQ_NEW,
-       WQ_WAITING,
-       WQ_SIGNALLED,
-} WaitQueueState;
-
-typedef struct _WaitQueueItem 
-{
-       mono_mutex_t mutex;
-       sem_t wait_sem;
-       WaitQueueState state;
-       guint32 update, ack;
-       guint32 timeout;
-       gboolean waitall;
-       GPtrArray *handles[WAPI_HANDLE_COUNT];
-       TimedThread *thread[WAPI_HANDLE_COUNT];
-       gboolean waited[WAPI_HANDLE_COUNT];
-       guint32 waitcount[WAPI_HANDLE_COUNT];
-       /* waitindex must be kept synchronised with the handles array,
-        * such that index n of one matches index n of the other
-        */
-       GArray *waitindex[WAPI_HANDLE_COUNT];
-       guint32 lowest_signal;
-} WaitQueueItem;
-
 #endif /* _WAPI_WAIT_PRIVATE_H_ */