ObjFW  Check-in [e45069a556]

Overview
Comment:Fix a wrong typedef in threading.h.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e45069a556bbd51fb76e043326ad92d52abddb5e58effc9503e77159c2cdaa07
User & Date: js on 2010-06-27 12:21:11
Other Links: manifest | tags
Context
2010-07-02
20:45
Rename +[elementWithText:] to +[elementWithCharacters:]. check-in: 4ea5f3f7fd user: js tags: trunk
2010-06-27
12:21
Fix a wrong typedef in threading.h. check-in: e45069a556 user: js tags: trunk
2010-06-20
21:02
Update PLATFORMS. check-in: c2554a691d user: js tags: trunk
Changes

Modified src/threading.h from [49e86ee69a] to [1fc17ada35].

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#if defined(OF_ATOMIC_OPS)
# import "atomic.h"
typedef int32_t of_spinlock_t;
#elif defined(OF_HAVE_PTHREAD_SPINLOCKS)
typedef pthread_spinlock_t of_spinlock_t;
#else
typedef pthread_mutex_t of_spinlock_t;
#endif

#if defined(OF_HAVE_PTHREADS)
# define of_thread_is_current(t) pthread_equal(t, pthread_self())
# define of_thread_current() pthread_self()
#elif defined(_WIN32)
# define of_thread_is_current(t) (t == GetCurrentThread())







|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#if defined(OF_ATOMIC_OPS)
# import "atomic.h"
typedef int32_t of_spinlock_t;
#elif defined(OF_HAVE_PTHREAD_SPINLOCKS)
typedef pthread_spinlock_t of_spinlock_t;
#else
typedef of_mutex_t of_spinlock_t;
#endif

#if defined(OF_HAVE_PTHREADS)
# define of_thread_is_current(t) pthread_equal(t, pthread_self())
# define of_thread_current() pthread_self()
#elif defined(_WIN32)
# define of_thread_is_current(t) (t == GetCurrentThread())