aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/ref.c
diff options
context:
space:
mode:
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;
-}