7160570: Intrinsification support for tracing framework

Reviewed-by: sla, never
This commit is contained in:
Rickard Bäckman 2012-03-06 12:36:59 +01:00
parent 70685b85af
commit cf406f37e3
15 changed files with 182 additions and 39 deletions

View file

@ -72,15 +72,18 @@
#ifdef _ALLBSD_SOURCE
#ifdef __APPLE__
static size_t thread_id_size() { return sizeof(thread_t); }
thread_t thread_id() const {
return _thread_id;
}
#else
static size_t thread_id_size() { return sizeof(pthread_t); }
pthread_t thread_id() const {
return _thread_id;
}
#endif
#else
static size_t thread_id_size() { return sizeof(pid_t); }
pid_t thread_id() const {
return _thread_id;
}