2007-03-22 Chris Toshok <toshok@ximian.com>
[mono-project/dkf.git] / mono / io-layer / shared.h
blobbe256f23fc6a3cd0a009e5e2bb024e7e0cf3b85a
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 gpointer _wapi_shm_attach (_wapi_shm_t type);
21 extern void _wapi_shm_semaphores_init (void);
22 extern void _wapi_shm_semaphores_remove (void);
23 extern int _wapi_shm_sem_lock (int sem);
24 extern int _wapi_shm_sem_trylock (int sem);
25 extern int _wapi_shm_sem_unlock (int sem);
27 #endif /* _WAPI_SHARED_H_ */