diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 1999-10-14 17:39:03 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 1999-10-14 17:39:03 +0000 |
commit | 365ccb9bb32a67b8bcec970d615fafed216a011f (patch) | |
tree | 11bcc36301f5dc8ec0760b394337f16aad7cc31d /time | |
parent | 12a86b47bde16f4fd45351fdb5e1e3e35f691145 (diff) | |
download | libapr-365ccb9bb32a67b8bcec970d615fafed216a011f.tar.gz |
Isolate the APR thread-safety macros. This makes any macro available to
ANY portion of APR. It also makes these macros internal to APR only,
because this header file is not exposed to programs which use APR.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59349 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r-- | time/unix/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/time/unix/time.c b/time/unix/time.c index cab2d09ce..ed8ae729f 100644 --- a/time/unix/time.c +++ b/time/unix/time.c @@ -58,6 +58,7 @@ #include "apr_general.h" #include "apr_lib.h" #include "apr_portable.h" +#include "apr_macro.h" #include <time.h> #include <errno.h> #include <string.h> @@ -111,13 +112,13 @@ ap_status_t ap_explode_time(struct atime_t *atime, ap_timetype_e type) { switch (type) { case APR_LOCALTIME: { - SAFETY_LOCK(localtime, atime->cntxt, "localtimefile"); + SAFETY_LOCK(localtime, "localtimefile"); LOCALTIME_R(&atime->currtime->tv_sec, atime->explodedtime); SAFETY_UNLOCK(localtime); break; } case APR_UTCTIME: { - SAFETY_LOCK(gmtime, atime->cntxt, "gmtimefile"); + SAFETY_LOCK(gmtime, "gmtimefile"); GMTIME_R(&atime->currtime->tv_sec, atime->explodedtime); SAFETY_UNLOCK(gmtime); break; |