Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/os/bsd/vm/osThread_bsd.hpp Thu Oct 03 04:42:57 2013 +0200 +++ b/src/os/bsd/vm/osThread_bsd.hpp Thu Oct 03 12:39:58 2013 +0400 @@ -42,7 +42,7 @@ #ifdef __APPLE__ typedef thread_t thread_id_t; #else - typedef pthread_t thread_id_t; + typedef pid_t thread_id_t; #endif // _pthread_id is the pthread id, which is used by library calls