FreeBASIC  0.91.0
fb_private_thread.h
Go to the documentation of this file.
1 #if defined HOST_UNIX
2  #include <pthread.h>
3  struct _FBMUTEX {
4  pthread_mutex_t id;
5  };
6 #elif defined HOST_WIN32
7  #include <windows.h>
8  struct _FBMUTEX {
9  HANDLE id;
10  };
11 #endif
12 
13 struct _FBTHREAD {
14 #if defined HOST_DOS
15  int id;
16 #elif defined HOST_UNIX
17  pthread_t id;
18 #elif defined HOST_WIN32
19  HANDLE id;
20 #elif defined HOST_XBOX
21  HANDLE id;
22 #else
23 #error Unexpected target
24 #endif
26  void *param;
27  void *opaque;
28 };