aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/ref.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-25 21:56:33 +0000
committerrsc <devnull@localhost>2004-12-25 21:56:33 +0000
commit1544f90960275dc9211bde30329c3258e0e1bf38 (patch)
treef55e7a73c03aaa24daa7cc2ad02822b921c477f9 /src/libthread/ref.c
parent7788fd54094693384ef5c92c475656dba8819feb (diff)
downloadplan9port-1544f90960275dc9211bde30329c3258e0e1bf38.tar.gz
plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.tar.bz2
plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.zip
New thread library
Diffstat (limited to 'src/libthread/ref.c')
-rw-r--r--src/libthread/ref.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/libthread/ref.c b/src/libthread/ref.c
deleted file mode 100644
index a3b2cbae..00000000
--- a/src/libthread/ref.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Atomic reference counts - used by applications.
- *
- * We use locks to avoid the assembly of the Plan 9 versions.
- */
-
-#include "threadimpl.h"
-
-void
-incref(Ref *r)
-{
- lock(&r->lk);
- r->ref++;
- unlock(&r->lk);
-}
-
-long
-decref(Ref *r)
-{
- long n;
-
- lock(&r->lk);
- n = --r->ref;
- unlock(&r->lk);
- return n;
-}