mariadb/freebsd/tests/test-xid.c
Rich Prohaska 510286c76f freebsd portability lib. addresses #1789
git-svn-id: file:///svn/toku/tokudb@12442 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:53 -04:00

17 lines
338 B
C

#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <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;
}