mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Note mutex protection requirements
This commit is contained in:
parent
6cbf65642a
commit
ee2001ea4b
@ -48,6 +48,7 @@
|
||||
|
||||
#include <lutil.h>
|
||||
|
||||
/* Must be mutex-protected, because lutil_gettime needs mutex protection */
|
||||
size_t
|
||||
lutil_csnstr(char *buf, size_t len, unsigned int replica, unsigned int mod)
|
||||
{
|
||||
|
@ -272,7 +272,9 @@ int lutil_parsetime( char *atm, struct lutil_tm *tm )
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* return a broken out time, with microseconds */
|
||||
/* return a broken out time, with microseconds
|
||||
* Must be mutex-protected.
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
/* Windows SYSTEMTIME only has 10 millisecond resolution, so we
|
||||
* also need to use a high resolution timer to get microseconds.
|
||||
|
Loading…
Reference in New Issue
Block a user