Note mutex protection requirements

This commit is contained in:
Howard Chu 2007-02-11 13:45:39 +00:00
parent 6cbf65642a
commit ee2001ea4b
2 changed files with 4 additions and 1 deletions

View File

@ -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)
{

View File

@ -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.