Added mz_proc_thread_self function for debug
svn: r11609
This commit is contained in:
parent
77a2542ecb
commit
6d50671010
|
@ -147,6 +147,20 @@ struct mz_proc_thread {
|
|||
#endif
|
||||
};
|
||||
|
||||
int mz_proc_thread_self() {
|
||||
#ifdef WIN32
|
||||
#error !!!mz_proc_thread_id not implemented!!!
|
||||
#else
|
||||
return (int) pthread_self();
|
||||
#endif
|
||||
}
|
||||
|
||||
int mz_proc_thread_id(mz_proc_thread* thread) {
|
||||
|
||||
return (int) thread->threadid;
|
||||
}
|
||||
|
||||
|
||||
mz_proc_thread* mz_proc_thread_create(mz_proc_thread_start start_proc, void* data) {
|
||||
mz_proc_thread *thread = (mz_proc_thread*)malloc(sizeof(mz_proc_thread));
|
||||
#ifdef WIN32
|
||||
|
|
Loading…
Reference in New Issue
Block a user