diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/os_posix/os_thread.c')
-rw-r--r-- | src/third_party/wiredtiger/src/os_posix/os_thread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/os_posix/os_thread.c b/src/third_party/wiredtiger/src/os_posix/os_thread.c index dc4d49ad493..4e93cdcb1af 100644 --- a/src/third_party/wiredtiger/src/os_posix/os_thread.c +++ b/src/third_party/wiredtiger/src/os_posix/os_thread.c @@ -110,3 +110,13 @@ __wt_thread_str(char *buf, size_t buflen) "%" PRIuMAX ":%p", (uintmax_t)getpid(), (void *)self)); #endif } + +/* + * __wt_process_id -- + * Return the process ID assigned by the operating system. + */ +uintmax_t +__wt_process_id(void) +{ + return ((uintmax_t)getpid()); +} |