summaryrefslogtreecommitdiff
path: root/source/kit/thread.h
blob: a1138ae9b2cfa14abb26eeeaf7a40058774333ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef KIT_THREAD_H
#define KIT_THREAD_H

#ifdef __cplusplus
extern "C" {
#endif

#ifndef _MSC_VER
#  include "pthread.h"
#else
typedef void *pthread_t;

int pthread_create(pthread_t *new_thread, void    *attrs,
                   void *(*routine)(void *), void *user_data);

void *pthread_join(pthread_t thread, void *return_value);
#endif

#ifdef __cplusplus
}
#endif

#endif