summaryrefslogtreecommitdiffstats
path: root/server/util_mutex.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Save a few bytes in conf pool when parsing 'Mutex' directive on some OS.Christophe Jaillet2016-02-251-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732369 13f79535-47bb-0310-9956-ffa450edef68
* Mutex directive: finish support of DefaultRuntimeDirJeff Trawick2012-08-071-3/+3
| | | | | | | | a partial conversion was made in r1299718, but I'm not sure when that change is effective git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370288 13f79535-47bb-0310-9956-ffa450edef68
* Move away from DEFAULT_REL_RUNTIMEDIR and use ap_runtime_dir_relative()Jim Jagielski2012-03-121-1/+1
| | | | | | API git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1299718 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-031-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Add -D DUMP_RUN_CFG option to dump some configuration itemsStefan Fritsch2011-10-091-0/+62
| | | | | | | | | from the parsed (or default) config. This is useful for init scripts that need to setup temporary directories and permissions, for example if those temporary directories are located on a ram disk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180681 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-1/+1
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* Introduce ap_(get|set)_core_module_config() functions/macros and use themStefan Fritsch2011-06-061-1/+4
| | | | | | | | | | | | everywhere. We know that the core module has module_index 0. Therefore we can save some pointer operations in ap_get_module_config(cv, &core_module) and ap_set_module_config(cv, &core_module, val). As these are called rather often, this may actually have some (small) measurable effect. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132781 13f79535-47bb-0310-9956-ffa450edef68
* hide some unused code on Win32 and NetWareJeff Trawick2011-04-071-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1089910 13f79535-47bb-0310-9956-ffa450edef68
* enable DEFAULT_REL_RUNTIMEDIR on NetWare and WindowsJeff Trawick2011-03-281-4/+0
| | | | | | | | this commit is missing the Windows and NetWare build logic to copy the appropriate file to include/ap_config_layout.h git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086073 13f79535-47bb-0310-9956-ffa450edef68
* Add a generic pool cleanup function that sets a pointer to NULL and useStefan Fritsch2010-11-061-7/+2
| | | | | | | it to replace various pool cleanup functions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032167 13f79535-47bb-0310-9956-ffa450edef68
* Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to takeStefan Fritsch2010-06-061-0/+2
| | | | | | | advantage of per-module loglevels git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
* It is not inconvenient to return the derived filename here, let'sWilliam A. Rowe Jr2010-05-041-4/+10
| | | | | | save the caller later hassle in looking this up, if they like. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@940979 13f79535-47bb-0310-9956-ffa450edef68
* Fix startup segfault when the Mutex directive is used but no loaded Jeff Trawick2010-02-221-2/+2
| | | | | | | | | | | | modules use httpd mutexes. Add an init call from core's pre-config hook to ensure init is performed before the config is parsed. PR: 48787 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@912666 13f79535-47bb-0310-9956-ffa450edef68
* string constnessTakashi Sato2009-12-291-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894361 13f79535-47bb-0310-9956-ffa450edef68
* fix this:Jeff Trawick2009-12-021-2/+1
| | | | | | | | | util_mutex.c: In function ‘ap_set_mutex’: util_mutex.c:188: warning: comparison between pointer and integer util_mutex.c:174: warning: unused variable ‘type’ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@886214 13f79535-47bb-0310-9956-ffa450edef68
* Add OmitPID keyword on Mutex directive to suppress theJeff Trawick2009-12-021-20/+61
| | | | | | | | | | | | | | | | | | | addition of the parent pid to the generated lock file name. Change the Mutex directive syntax from Mutex default|mutex-name mechanism to Mutex mechanism [default|mutex-name] ... [OmitPID] as suggested by wrowe. (Thanks!) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@886154 13f79535-47bb-0310-9956-ffa450edef68
* fix the "fix" in r883816Jeff Trawick2009-11-241-2/+3
| | | | | | | | internal function ap_set_mutex() should be AP_DECLARE_NONSTD() like our other directive parsers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883859 13f79535-47bb-0310-9956-ffa450edef68
* fix Win32 compile failure in r883540, reported by Gregg SmithJeff Trawick2009-11-241-0/+4
| | | | | | | | | | | | | | | DEFAULT_REL_RUNTIMEDIR defined only in mpm_default.h for NetWare and dsp-based Win32 builds mpm_default.h not in normal include path on Unix thus, hardcode "logs" directory when DEFAULT_REL_RUNTIMEDIR isn't defined (file-based mutexes aren't configurable for those platforms anyway) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883828 13f79535-47bb-0310-9956-ffa450edef68
* fix Win32 compile failure in r883540, reported by Gregg SmithJeff Trawick2009-11-241-2/+2
| | | | | | | | (on Win32, external APIs use one calling convention while directive parsers use a different one) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883816 13f79535-47bb-0310-9956-ffa450edef68
* fix Win32 compile failure in r883540, reported by Gregg SmithJeff Trawick2009-11-241-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883802 13f79535-47bb-0310-9956-ffa450edef68
* Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,Jeff Trawick2009-11-241-4/+337
| | | | | | | | | | | | | and WatchdogMutexPath with a single Mutex directive. Add APIs to simplify setup and user customization of APR proc and global mutexes. (See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer respected; set DEFAULT_REL_RUNTIMEDIR instead. Some existing modules, such as mod_ldap and mod_auth_digest gain configurability for their mutexes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883540 13f79535-47bb-0310-9956-ffa450edef68
* remove leader, perchild, and threadpool MPMs (other than non-English bits in ↵Jeff Trawick2009-03-261-1/+1
| | | | | | common parts of the manual) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758613 13f79535-47bb-0310-9956-ffa450edef68
* Remove all references to CORE_PRIVATE.Paul Querna2008-04-071-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645455 13f79535-47bb-0310-9956-ffa450edef68
* ap_available_mutexes_string and ap_add_available_mutexes_string William A. Rowe Jr2007-08-231-51/+0
| | | | | | | | | | | | | | | cannot be data symbols when mod_ssl is built as a loadable module; using an external string constant in a loadable module is not portable. Also reorganize file and sem to follow their explicit mechanisms, and ensured that the explicit mechansims are listed in order of preference. This raises a question, would [fcntl|file] be a clearer way of indiciating what the file/sem methods devolve to? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568833 13f79535-47bb-0310-9956-ffa450edef68
* Minor quibble; the declarespec for data comes after the data type.William A. Rowe Jr2007-08-231-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568794 13f79535-47bb-0310-9956-ffa450edef68
* Once SSLMutex allowed for the setting of both theJim Jagielski2006-10-241-0/+167
locking method and the lockfile location, I never liked how AcceptMutex was linked to LockFile. This seemed unnecessary. Much better to have AcceptMutex do both as well. Plus, now that we will likely see other modules require a "standard" way of setting mutexes, why not have Apache provide that as an API of sorts. Anyway, LockFile is now depreciated and AcceptMutex is now SSLMutex-like. We also provide a short function that "parses" out a mutex parameter and strips out the mechanism and lockfile location. AcceptMutex and SSLMutex is this capability. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467326 13f79535-47bb-0310-9956-ffa450edef68