apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject [PATCH] one-time init of the proc_mutex types [repost]
Date Mon, 08 Oct 2001 19:23:42 GMT
[repost from a week ago, should be another quickie]

This patch sets us up to call the initialization routines for the unix
proc_mutex routines when APR is initialized.

This will allow the new lock API to use fcntl and sysv proc_mutex types.

-aaron


Index: misc/unix/start.c
===================================================================
RCS file: /home/cvspublic/apr/misc/unix/start.c,v
retrieving revision 1.53
diff -u -r1.53 start.c
--- misc/unix/start.c	2001/08/31 06:07:34	1.53
+++ misc/unix/start.c	2001/10/01 21:00:39
@@ -59,6 +59,7 @@
 
 #include "misc.h"       /* for WSAHighByte / WSALowByte */
 #include "locks.h"      /* for apr_unix_setup_lock() */
+#include "proc_mutex.h" /* for apr_proc_mutex_unix_setup_lock() */
 #include "internal_time.h"
 
 
@@ -84,6 +85,7 @@
 
 #if !defined(BEOS) && !defined(OS2) && !defined(WIN32) && !defined(NETWARE)
     apr_unix_setup_lock();
+    apr_proc_mutex_unix_setup_lock();
     apr_unix_setup_time();
 #elif defined WIN32 || defined(NETWARE)
     iVersionRequested = MAKEWORD(WSAHighByte, WSALowByte);

Mime
View raw message