mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
use boost sleep on sunos SERVER-548
This commit is contained in:
parent
1ba0144d4f
commit
d309bc1b09
@ -184,7 +184,7 @@ namespace mongo {
|
|||||||
#define localtime _localtime_not_threadsafe_
|
#define localtime _localtime_not_threadsafe_
|
||||||
#define ctime _ctime_is_not_threadsafe_
|
#define ctime _ctime_is_not_threadsafe_
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__sunos__)
|
||||||
inline void sleepsecs(int s) {
|
inline void sleepsecs(int s) {
|
||||||
boost::xtime xt;
|
boost::xtime xt;
|
||||||
boost::xtime_get(&xt, boost::TIME_UTC);
|
boost::xtime_get(&xt, boost::TIME_UTC);
|
||||||
|
Loading…
Reference in New Issue
Block a user