aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_shmtx.c
Commit message (Collapse)AuthorAge
* Copyright updated.Maxim Konovalov2012-01-18
|
* Added (void) as we intentionally ignore returned values.Maxim Dounin2011-11-28
| | | | Requested by Igor Sysoev.
* Fixed build without atomic operations.Maxim Dounin2011-11-23
|
* Added shmtx interface to forcibly unlock mutexes.Maxim Dounin2011-11-23
| | | | | | | | | | | It is currently used from master process on abnormal worker termination to unlock accept mutex (unlocking of accept mutex was broken in 1.0.2). It is expected to be used in the future to unlock other mutexes as well. Shared mutex code was rewritten to make this possible in a safe way, i.e. with a check if lock was actually held by the exited process. We again use pid to lock mutex, and use separate atomic variable for a count of processes waiting in sem_wait().
* use POSIX semaphores in shmtx instead of sched_yield()Igor Sysoev2011-05-10
| | | | number of spinlock spins are increased twice
* fix building on platforms with non-supported atomic operationsIgor Sysoev2007-02-11
|
* slab allocator in shared memoryIgor Sysoev2006-11-20
|
* nginx-0.3.27-RELEASE importrelease-0.3.27Igor Sysoev2006-02-08
*) Change: the "variables_hash_max_size" and "variables_hash_bucket_size" directives. *) Feature: the $body_bytes_sent variable can be used not only in the "log_format" directive. *) Feature: the $ssl_protocol and $ssl_cipher variables. *) Feature: the cache line size detection for widespread CPUs at start time. *) Feature: now the "accept_mutex" directive is supported using fcntl(2) on platforms different from i386, amd64, sparc64, and ppc. *) Feature: the "lock_file" directive and the --with-lock-path=PATH autoconfiguration directive. *) Bugfix: if the HTTPS protocol was used in the "proxy_pass" directive then the requests with the body was not transferred.