Added mz_proc_thread_self function for debug

svn: r11609
This commit is contained in:
Kevin Tew 2008-09-09 15:55:54 +00:00
parent 77a2542ecb
commit 6d50671010

View File

@ -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