Win copability for posix threads added

v0.5.xx
Eugen Tarasov 9 years ago
parent cf2cb4236a
commit 13d840c628

@ -344,7 +344,11 @@ static void pthreads_locking_callback(int mode, int type, const char *file, int
static void pthreads_thread_id(CRYPTO_THREADID *tid)
{
#ifdef WIN32
CRYPTO_THREADID_set_numeric(tid, (unsigned long)GetCurrentThreadId());
#else
CRYPTO_THREADID_set_numeric(tid, (unsigned long)pthread_self());
#endif
}
int sntl_init(void)

@ -247,7 +247,7 @@ int main(int argc, char **argv)
(char *)sxmsg_payload(msg));
mr = sxmsg_return(msg, SNE_SUCCESS);
fprintf(stderr, "mr = %d\n", mr);
break;
brebak;
case SNE_SUCCESS:
fprintf(stdout, "Success.\n");
break;

Loading…
Cancel
Save