mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
324c278a31
git-svn-id: file:///svn/toku/tokudb@16673 c7de825b-a66e-492c-adef-691d508d4ae1
17 lines
343 B
C
17 lines
343 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <unistd.h>
|
|
#include <toku_assert.h>
|
|
#include <sys/thr.h>
|
|
#include "toku_os.h"
|
|
|
|
static int gettid(void) {
|
|
long tid; int r = thr_self(&tid); assert(r == 0);
|
|
return tid;
|
|
}
|
|
|
|
int main(void) {
|
|
assert(toku_os_getpid() == getpid());
|
|
assert(toku_os_gettid() == gettid());
|
|
return 0;
|
|
}
|