diff options
author | baker@bk-internal.mysql.com <> | 2006-11-30 01:45:16 +0100 |
---|---|---|
committer | baker@bk-internal.mysql.com <> | 2006-11-30 01:45:16 +0100 |
commit | 082de8dfcee10c66ae0a23a88e501b5120f6625a (patch) | |
tree | 5160560731f3ca95f2e5c117e3f25aaf3534caf2 /include | |
parent | 94dc5d5379a01f789cd188785b96dfabf5d837fb (diff) | |
parent | 931cf68b593b958e4e642acfe148976b9b71cd4f (diff) | |
download | mariadb-git-082de8dfcee10c66ae0a23a88e501b5120f6625a.tar.gz |
Merge bk-internal.mysql.com:/data0/bk/mysql-5.1
into bk-internal.mysql.com:/data0/bk/mysql-5.1-arch
Diffstat (limited to 'include')
-rw-r--r-- | include/my_pthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h index 0cb38d29be8..8a0e1fc2b01 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -130,6 +130,9 @@ void pthread_exit(void *a); /* was #define pthread_exit(A) ExitThread(A)*/ #define my_pthread_setprio(A,B) SetThreadPriority(GetCurrentThread(), (B)) #define pthread_kill(A,B) pthread_dummy(0) +#define pthread_join(A,B) \ + ((WaitForSingleObject((A), INFINITE) != WAIT_OBJECT_0) || !CloseHandle(A)) + /* Dummy defines for easier code */ #define pthread_attr_setdetachstate(A,B) pthread_dummy(0) #define my_pthread_attr_setprio(A,B) pthread_attr_setprio(A,B) |