commit | e8d588e4d31f9d1e93b14499d23760d1d3d2db6b | [log] [tgz] |
---|---|---|
author | Jens Axboe <jaxboe@fusionio.com> | Tue Jul 12 22:33:53 2011 +0200 |
committer | Jens Axboe <jaxboe@fusionio.com> | Tue Jul 12 22:33:53 2011 +0200 |
tree | ad4d7df1aeaf6a4867b6160cc3b7f4e6afec294d | |
parent | 47f767c113be7448eb8aa9d4a9f9aa8f760ef642 [diff] [blame] |
Add gettid() for FreeBSD/OSX/Solaris Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/os/os-solaris.h b/os/os-solaris.h index 681d4a6..e1627d7 100644 --- a/os/os-solaris.h +++ b/os/os-solaris.h
@@ -119,6 +119,11 @@ return 0; } +static inline int gettid(void) +{ + return pthread_self(); +} + /* * Should be enough, not aware of what (if any) restrictions Solaris has */