2010-04-07 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / metadata / mono-wsq.h
blob7208dadb6b99da6700a0db4041a2e5031e76977a
1 #ifndef _MONO_WSQ_H
2 #define _MONO_WSQ_H
4 #include <config.h>
5 #include <glib.h>
6 #include <mono/metadata/object.h>
7 #include <mono/metadata/gc-internal.h>
8 #include <mono/io-layer/io-layer.h>
10 G_BEGIN_DECLS
12 typedef struct _MonoWSQ MonoWSQ;
14 void mono_wsq_init (void) MONO_INTERNAL;
15 void mono_wsq_cleanup (void) MONO_INTERNAL;
17 MonoWSQ *mono_wsq_create (void) MONO_INTERNAL;
18 void mono_wsq_destroy (MonoWSQ *wsq) MONO_INTERNAL;
19 gboolean mono_wsq_local_push (void *obj) MONO_INTERNAL;
20 gboolean mono_wsq_local_pop (void **ptr) MONO_INTERNAL;
21 void mono_wsq_try_steal (MonoWSQ *wsq, void **ptr, guint32 ms_timeout) MONO_INTERNAL;
22 gint mono_wsq_count (MonoWSQ *wsq) MONO_INTERNAL;
24 G_END_DECLS
26 #endif