ObjFW  Check-in [510158d026]

Overview
Comment:threading.h: Remove unconditional sched.h include
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 510158d0267c7f5367b2f686468811145a7e43ffd6713ccf0de015f71af53bab
User & Date: js on 2017-05-16 22:58:27
Other Links: manifest | tags
Context
2017-05-16
23:22
runtime.h: Never undefine _Nullable / _Nonnull check-in: 5116a3709c user: js tags: trunk
22:58
threading.h: Remove unconditional sched.h include check-in: 510158d026 user: js tags: trunk
22:35
Add struct sockaddr_storage for MorphOS check-in: e1559236a9 user: js tags: trunk
Changes

Modified src/threading.h from [e37b27b008] to [44065a1e75].

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

#include <math.h>

#import "OFObject.h"

#if defined(OF_HAVE_PTHREADS)
# include <pthread.h>
# include <sched.h>
typedef pthread_t of_thread_t;
typedef pthread_key_t of_tlskey_t;
typedef pthread_mutex_t of_mutex_t;
typedef pthread_cond_t of_condition_t;
typedef pthread_once_t of_once_t;
# define OF_ONCE_INIT PTHREAD_ONCE_INIT
#elif defined(OF_WINDOWS)







<







25
26
27
28
29
30
31

32
33
34
35
36
37
38

#include <math.h>

#import "OFObject.h"

#if defined(OF_HAVE_PTHREADS)
# include <pthread.h>

typedef pthread_t of_thread_t;
typedef pthread_key_t of_tlskey_t;
typedef pthread_mutex_t of_mutex_t;
typedef pthread_cond_t of_condition_t;
typedef pthread_once_t of_once_t;
# define OF_ONCE_INIT PTHREAD_ONCE_INIT
#elif defined(OF_WINDOWS)