2006-06-13 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / io-layer / collection.h
index 725bd47077c47436c3883c00e777c34e8eaf5fcd..95831d3f60ce4849965fff3009575263d48172a0 100644 (file)
 
 #include <glib.h>
 
+G_BEGIN_DECLS
+
 #define _WAPI_HANDLE_COLLECTION_UPDATE_INTERVAL                10
 #define _WAPI_HANDLE_COLLECTION_EXPIRED_INTERVAL       60
 
 #include <mono/io-layer/shared.h>
 
-#define _WAPI_HANDLE_COLLECTION_UNSAFE         \
-       {                                       \
-               int _wapi_thr_ret;              \
-                                               \
-               _wapi_thr_ret = _wapi_shm_sem_lock (_WAPI_SHARED_SEM_COLLECTION);       \
-               g_assert(_wapi_thr_ret == 0);
-
-#define _WAPI_HANDLE_COLLECTION_SAFE           \
-               _wapi_thr_ret = _wapi_shm_sem_unlock (_WAPI_SHARED_SEM_COLLECTION); \
-               g_assert (_wapi_thr_ret == 0);  \
-       }
-       
 extern void _wapi_collection_init (void);
 extern void _wapi_handle_collect (void);
 
+G_END_DECLS
+
 #endif /* _WAPI_COLLECTION_H_ */