comparison src/os/bsd/vm/osThread_bsd.hpp @ 6918:0af5da0c9d9d

8001619: Remove usage of _ALLBSD_SOURCE in bsd files Reviewed-by: coleenp, dholmes
author sla
date Mon, 29 Oct 2012 21:04:17 +0100
parents 960a442eae91
children 758935f7c23f
comparison
equal deleted inserted replaced
6917:e81fbc04a942 6918:0af5da0c9d9d
37 _thread_type = type; 37 _thread_type = type;
38 } 38 }
39 39
40 private: 40 private:
41 41
42 #ifdef _ALLBSD_SOURCE
43
44 #ifdef __APPLE__ 42 #ifdef __APPLE__
45 typedef thread_t thread_id_t; 43 typedef thread_t thread_id_t;
46 #else 44 #else
47 typedef pthread_t thread_id_t; 45 typedef pthread_t thread_id_t;
48 #endif
49
50 #else
51 typedef pid_t thread_id_t;
52 #endif 46 #endif
53 47
54 // _pthread_id is the pthread id, which is used by library calls 48 // _pthread_id is the pthread id, which is used by library calls
55 // (e.g. pthread_kill). 49 // (e.g. pthread_kill).
56 pthread_t _pthread_id; 50 pthread_t _pthread_id;