mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
510286c76f
git-svn-id: file:///svn/toku/tokudb@12442 c7de825b-a66e-492c-adef-691d508d4ae1
17 lines
338 B
C
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;
|
|
}
|