Differences From Artifact [60a577e8c2]:
- File src/threading.h — part of check-in [3b97fc3cd9] at 2014-01-04 00:24:08 on branch trunk — Update copyright. (user: js, size: 10620) [annotate] [blame] [check-ins using]
To Artifact [7bbaf6acd2]:
- File
src/threading.h
— part of check-in
[dc31ce3d34]
at
2014-01-16 23:09:11
on branch trunk
— Add of_time_interval_t.
This is used instead for time intervals now instead of doubles. (user: js, size: 10654) [annotate] [blame] [check-ins using]
| ︙ | |||
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | + + |
#if !defined(OF_HAVE_THREADS) || \
(!defined(OF_HAVE_PTHREADS) && !defined(_WIN32))
# error No threads available!
#endif
#include <math.h>
#import "OFObject.h"
#import "macros.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;
|
| ︙ | |||
220 221 222 223 224 225 226 | 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | - + | return true; #endif } static OF_INLINE bool of_condition_timed_wait(of_condition_t *condition, of_mutex_t *mutex, |
| ︙ |