Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1730)

Side by Side Diff: src/include/threads.h

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/include/tddl.h ('k') | src/include/trousers_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Licensed Materials - Property of IBM 3 * Licensed Materials - Property of IBM
4 * 4 *
5 * trousers - An open source TCG Software Stack 5 * trousers - An open source TCG Software Stack
6 * 6 *
7 * (C) Copyright International Business Machines Corp. 2006 7 * (C) Copyright International Business Machines Corp. 2006
8 * 8 *
9 */ 9 */
10 10
(...skipping 13 matching lines...) Expand all
24 #define MUTEX_DECLARE_EXTERN(m) extern pthread_mutex_t m 24 #define MUTEX_DECLARE_EXTERN(m) extern pthread_mutex_t m
25 25
26 /* condition variable abstractions */ 26 /* condition variable abstractions */
27 #define COND_DECLARE(c) pthread_cond_t c 27 #define COND_DECLARE(c) pthread_cond_t c
28 #define COND_INIT(c) pthread_cond_init(&c, NULL) 28 #define COND_INIT(c) pthread_cond_init(&c, NULL)
29 #define COND_VAR pthread_cond_t 29 #define COND_VAR pthread_cond_t
30 #define COND_WAIT(c,m) pthread_cond_wait(c,m) 30 #define COND_WAIT(c,m) pthread_cond_wait(c,m)
31 #define COND_SIGNAL(c) pthread_cond_signal(c) 31 #define COND_SIGNAL(c) pthread_cond_signal(c)
32 32
33 /* thread abstractions */ 33 /* thread abstractions */
34 #define THREAD_ID» » » ((size_t)pthread_self()) 34 #define THREAD_ID» » » ((THREAD_TYPE)pthread_self())
35 #define THREAD_TYPE pthread_t 35 #define THREAD_TYPE pthread_t
36 #define THREAD_JOIN pthread_join 36 #define THREAD_JOIN pthread_join
37 #define THREAD_DETACH pthread_detach 37 #define THREAD_DETACH pthread_detach
38 #define THREAD_ATTR_DECLARE(a) pthread_attr_t a 38 #define THREAD_ATTR_DECLARE(a) pthread_attr_t a
39 #define THREAD_ATTR_INIT(a) pthread_attr_init(&a) 39 #define THREAD_ATTR_INIT(a) pthread_attr_init(&a)
40 #define THREAD_ATTR_SETJOINABLE(a) pthread_attr_setdetachstate(&a, PTHREAD_ CREATE_JOINABLE) 40 #define THREAD_ATTR_SETJOINABLE(a) pthread_attr_setdetachstate(&a, PTHREAD_ CREATE_JOINABLE)
41 #define THREAD_EXIT pthread_exit 41 #define THREAD_EXIT pthread_exit
42 #define THREAD_CREATE(a,b,c,d) pthread_create(a,b,c,d) 42 #define THREAD_CREATE(a,b,c,d) pthread_create(a,b,c,d)
43 #define THREAD_SET_SIGNAL_MASK pthread_sigmask 43 #define THREAD_SET_SIGNAL_MASK pthread_sigmask
44 #define THREAD_NULL» » » (THREAD_TYPE)0 44 #define THREAD_NULL» » » (THREAD_TYPE *)0
45 45
46 #else 46 #else
47 47
48 #error No threading library defined! (Cannot find pthread.h) 48 #error No threading library defined! (Cannot find pthread.h)
49 49
50 #endif 50 #endif
51 51
52 #endif 52 #endif
OLDNEW
« no previous file with comments | « src/include/tddl.h ('k') | src/include/trousers_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698