提交 eb218a96 authored 作者: Michael Jerris's avatar Michael Jerris

Tue Mar 3 12:23:35 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>

  * su_uniqueid.c: srand() must be called per-thread on windows



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12400 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 83e087e1
Tue Mar 3 16:01:07 CST 2009
Tue Mar 3 16:01:38 CST 2009
......@@ -73,8 +73,13 @@ int _getpid(void);
#include "sofia-sip/su_time.h"
#include "sofia-sip/su_uniqueid.h"
#ifdef SU_HAVE_WINSOCK
#define PERTHREAD __declspec(thread)
#else
#define PERTHREAD
#endif
/* For random number generator */
static int initialized = 0;
static PERTHREAD int initialized = 0;
static void init(void);
static void init_node(void);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论