added get_threadid

This commit is contained in:
jsorg71 2005-03-12 15:50:19 +00:00
parent 5140dac0f5
commit ed041b7983
2 changed files with 11 additions and 0 deletions

View File

@ -550,6 +550,16 @@ int g_thread_create(void* (* start_routine)(void*), void* arg)
}
#endif
/*****************************************************************************/
int g_get_threadid(void)
{
#if defined(_WIN32)
return 0;
#elif defined(USE_PTHREAD)
return pthread_self();
#endif
}
#if defined(USE_OPENSSL)
/* rc4 stuff */

View File

@ -52,6 +52,7 @@ int g_is_term(void);
void g_set_term(int in_val);
void g_sleep(int msecs);
int g_thread_create(THREAD_RV (THREAD_CC * start_routine)(void*), void* arg);
int g_get_threadid(void);
void* g_rc4_info_create(void);
void g_rc4_info_delete(void* rc4_info);
void g_rc4_set_key(void* rc4_info, char* key, int len);