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

#ifdef __cplusplus
extern "C" {
#endif

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

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

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

#ifdef __cplusplus
}
#endif

#endif