libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

pthread_windows.h (1312B)


      1 #ifndef pthread_windows_H
      2 #define pthread_windows_H
      3 
      4 struct _pthread_t;
      5 struct _pthread_cond_t;
      6 struct _pthread_mutex_t;
      7 
      8 typedef struct _pthread_t *pthread_t;
      9 typedef struct _pthread_cond_t *pthread_cond_t;
     10 typedef struct _pthread_mutex_t *pthread_mutex_t;
     11 
     12 #define PTHREAD_MUTEX_INITIALIZER ((pthread_mutex_t)(size_t) -1)
     13 #define PTHREAD_COND_INITIALIZER ((pthread_cond_t)(size_t) -1)
     14 
     15 int pthread_create (pthread_t * pt,
     16                     const void *attr,
     17                     void *(__cdecl * start)(void *),
     18                     void *arg);
     19 
     20 int pthread_detach (pthread_t pt);
     21 
     22 int pthread_join (pthread_t pt,
     23                   void **value_ptr);
     24 
     25 int pthread_mutex_init (pthread_mutex_t *mutex,
     26                         const void *attr);
     27 
     28 int pthread_mutex_destroy (pthread_mutex_t *mutex);
     29 
     30 int pthread_mutex_lock (pthread_mutex_t *mutex);
     31 
     32 int pthread_mutex_unlock (pthread_mutex_t *mutex);
     33 
     34 int pthread_cond_init (pthread_cond_t *cond,
     35                        const void *attr);
     36 
     37 int pthread_cond_destroy (pthread_cond_t *cond);
     38 
     39 int pthread_cond_wait (pthread_cond_t *cond,
     40                        pthread_mutex_t *mutex);
     41 
     42 int pthread_cond_signal (pthread_cond_t *cond);
     43 
     44 int pthread_cond_broadcast (pthread_cond_t *cond);
     45 
     46 #endif /* !pthread_windows_H */