diff options
author | unknown <monty@hundin.mysql.fi> | 2002-08-12 04:04:43 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-08-12 04:04:43 +0300 |
commit | 514e60480d77236aedb1ab69c0e7754e060e495a (patch) | |
tree | 4ba65b7347df0448111dd1a3ab055bc2c8a1c6dc /innobase/os/os0thread.c | |
parent | 9b1930152db6ecd30b8cbcc7200af2baf7f82295 (diff) | |
parent | 071994ba3665ce2284de5e77a4f06c0b6e93eeeb (diff) | |
download | mariadb-git-514e60480d77236aedb1ab69c0e7754e060e495a.tar.gz |
merge with 3.23.52
BitKeeper/deleted/.del-global.h~e80d28157acfdcb5:
Auto merged
Docs/manual.texi:
Auto merged
include/my_no_pthread.h:
Auto merged
innobase/include/univ.i:
Auto merged
innobase/lock/lock0lock.c:
Auto merged
innobase/os/os0thread.c:
Auto merged
innobase/srv/srv0srv.c:
Auto merged
innobase/trx/trx0trx.c:
Auto merged
innobase/ut/ut0ut.c:
Auto merged
mysql-test/r/bigint.result:
Auto merged
mysql-test/t/bigint.test:
Auto merged
mysys/my_init.c:
Auto merged
mysys/my_net.c:
Auto merged
mysys/mysys_priv.h:
Auto merged
mysys/thr_rwlock.c:
Auto merged
sql/ha_innodb.h:
Auto merged
sql/sql_insert.cc:
Auto merged
include/my_sys.h:
merge with 3.23
libmysql/Makefile.shared:
merge with 3.23
mysql-test/mysql-test-run.sh:
merge with 3.23
mysql-test/r/func_if.result:
merge with 3.23
mysys/Makefile.am:
merge with 3.23
mysys/my_gethostbyname.c:
merge with 3.23
sql/ha_innodb.cc:
merge with 3.23
sql/item_cmpfunc.cc:
merge with 3.23
sql/mysqld.cc:
merge with 3.23
sql/sql_show.cc:
merge with 3.23
Diffstat (limited to 'innobase/os/os0thread.c')
-rw-r--r-- | innobase/os/os0thread.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/innobase/os/os0thread.c b/innobase/os/os0thread.c index a8b417f4f3a..cb1205c5a85 100644 --- a/innobase/os/os0thread.c +++ b/innobase/os/os0thread.c @@ -97,17 +97,20 @@ os_thread_create( function */ os_thread_id_t* thread_id __attribute__((unused))) /* out: id of created - thread */ + thread; currently this is + identical to the handle to + the thread */ { #ifdef __WIN__ os_thread_t thread; + ulint win_thread_id; thread = CreateThread(NULL, /* no security attributes */ 0, /* default size stack */ (LPTHREAD_START_ROUTINE)start_f, arg, 0, /* thread runs immediately */ - thread_id); + &win_thread_id); if (srv_set_thread_priorities) { @@ -118,6 +121,8 @@ os_thread_create( ut_a(SetThreadPriority(thread, srv_query_thread_priority)); } + *thread_id = thread; + return(thread); #else int ret; @@ -135,6 +140,8 @@ os_thread_create( my_pthread_setprio(pthread, srv_query_thread_priority); } + *thread_id = pthread; + return(pthread); #endif } |