]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
crude ap_thread_mutex abstraction
authordgaudet <dgaudet@unknown>
Sun, 20 Jun 1999 21:12:49 +0000 (21:12 +0000)
committerdgaudet <dgaudet@unknown>
Sun, 20 Jun 1999 21:12:49 +0000 (21:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83351 13f79535-47bb-0310-9956-ffa450edef68

include/ap_mpm.h

index e025bbc075ebeab6f65606743e7142436de740cd..16039fc33ef1dd59d5df18de25bbc3099dbb42b0 100644 (file)
@@ -66,6 +66,13 @@ API_EXPORT(int) ap_mpm_run(pool *pconf, pool *plog, server_rec *server_conf);
    used by the connection loop */
 API_EXPORT(int) ap_mpm_graceful_stop(void);
 
+/* a mutex which synchronizes threads within one process */
+typedef struct ap_thread_mutex ap_thread_mutex;
+API_EXPORT(ap_thread_mutex *) ap_thread_mutex_new(void);
+API_EXPORT(void) ap_thread_mutex_lock(ap_thread_mutex *);
+API_EXPORT(void) ap_thread_mutex_unlock(ap_thread_mutex *);
+API_EXPORT(void) ap_thread_mutex_destroy(ap_thread_mutex *);
+
 #ifdef HAS_OTHER_CHILD
 /*
  * register an other_child -- a child which the main loop keeps track of