git-svn-id: svn://db.shs.com.ru/pip@215 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -133,7 +133,11 @@ bool PIThread::start(int timer_delay) {
|
||||
//piCout << "pthread_create" << thread;
|
||||
pthread_attr_destroy(&attr);
|
||||
if (ret == 0) {
|
||||
# ifdef MAC_OS
|
||||
pthread_threadid_np(thread, &tid)
|
||||
# else
|
||||
tid_ = thread;
|
||||
# endif
|
||||
#else
|
||||
if (thread != 0) CloseHandle(thread);
|
||||
thread = (void *)_beginthreadex(0, 0, thread_function, this, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user