aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_x86_mutex.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-28 08:34:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-28 08:34:51 +0000
commitd90282d8ba69973d6612c405e52636085623ddcd (patch)
tree59e36e780b2f5b8f9348013d3037f8fc06ba0247 /src/os/unix/ngx_x86_mutex.h
parent6d2a14aa906b1d576d5151b2410b59cfcab5edd4 (diff)
downloadnginx-d90282d8ba69973d6612c405e52636085623ddcd.tar.gz
nginx-d90282d8ba69973d6612c405e52636085623ddcd.zip
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Diffstat (limited to 'src/os/unix/ngx_x86_mutex.h')
-rw-r--r--src/os/unix/ngx_x86_mutex.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/os/unix/ngx_x86_mutex.h b/src/os/unix/ngx_x86_mutex.h
deleted file mode 100644
index a8ed2eee2..000000000
--- a/src/os/unix/ngx_x86_mutex.h
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-typedef struct {
- int lock;
-} ngx_mutex_t;
-
-
-static inline int ngx_spin_lock(ngx_mutex_t *m, int count)
-{
- int lock;
-
- __asm__ __volatile("
-
-get_lock:
- mov $1, %1
- xchg %1, %2
- cmp $0, %1
- jne spin_lock
-
-spin_lock:
- cmp $0, %3
- je failed
-
- dec %3
- rep nop
- cmp $0, %2
- jne spin_lock
-
- ": "=q" (lock), "m" (m->lock), "q" (count));
-}