comparison src/os/bsd/vm/osThread_bsd.hpp @ 12809:faff125a1ead

8022616: u4 should not be used as a type for thread_id Summary: Usage of u4 as a type for thread_id cause a compilation error on platform, where thread_id is a pointer Reviewed-by: sla, sspitsyn, minqi
author dsamersoff
date Thu, 03 Oct 2013 12:39:58 +0400
parents f2110083203d
children
comparison
equal deleted inserted replaced
12808:7ae82c3a781a 12809:faff125a1ead
40 private: 40 private:
41 41
42 #ifdef __APPLE__ 42 #ifdef __APPLE__
43 typedef thread_t thread_id_t; 43 typedef thread_t thread_id_t;
44 #else 44 #else
45 typedef pthread_t thread_id_t; 45 typedef pid_t thread_id_t;
46 #endif 46 #endif
47 47
48 // _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
49 // (e.g. pthread_kill). 49 // (e.g. pthread_kill).
50 pthread_t _pthread_id; 50 pthread_t _pthread_id;