From: dgaudet Date: Sun, 20 Jun 1999 21:12:49 +0000 (+0000) Subject: crude ap_thread_mutex abstraction X-Git-Tag: 1.3.7~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70ff924463597b80ae8dc40d519cdcaf71664eb6;p=thirdparty%2Fapache%2Fhttpd.git crude ap_thread_mutex abstraction git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83351 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/ap_mpm.h b/include/ap_mpm.h index e025bbc075e..16039fc33ef 100644 --- a/include/ap_mpm.h +++ b/include/ap_mpm.h @@ -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