2009-05-15 Geoff Norton <gnorton@novell.com>
[mono-project.git] / mono / io-layer / shared.h
blobb2accf82c30399776d33ba827a7acc388195e2f7
1 /*
2 * shared.h: Shared memory handle, and daemon launching
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002-2006 Novell, Inc.
8 */
10 #ifndef _WAPI_SHARED_H_
11 #define _WAPI_SHARED_H_
13 #include <mono/io-layer/wapi-private.h>
15 typedef enum {
16 WAPI_SHM_DATA,
17 WAPI_SHM_FILESHARE
18 } _wapi_shm_t;
20 extern gboolean _wapi_shm_disabled;
22 extern gpointer _wapi_shm_attach (_wapi_shm_t type);
23 extern void _wapi_shm_semaphores_init (void);
24 extern void _wapi_shm_semaphores_remove (void);
25 extern int _wapi_shm_sem_lock (int sem);
26 extern int _wapi_shm_sem_trylock (int sem);
27 extern int _wapi_shm_sem_unlock (int sem);
29 #endif /* _WAPI_SHARED_H_ */