summaryrefslogtreecommitdiff
path: root/sys/src/libthread/threadimpl.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-09-06 23:25:14 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-09-06 23:25:14 +0200
commitb55315c3fd5d745a3c5b15991dfa1c8c5da7a5ae (patch)
treef8fd9c6d691a00d903cede9ab863d1ff6ff789ff /sys/src/libthread/threadimpl.h
parent7562da90e562e65156042574e088d4359a8fccba (diff)
libthread: get rid of tprivalloc()/tprivfree()/tprivdata() and _workerdata() (thanks qrstuv)
these functions where undocumented and unused. especially tprivfree() was buggy missing a unlock() call. theres not much point in supporting these functions as theres threaddata() and procdata().
Diffstat (limited to 'sys/src/libthread/threadimpl.h')
-rw-r--r--sys/src/libthread/threadimpl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/src/libthread/threadimpl.h b/sys/src/libthread/threadimpl.h
index 11545ba05..e3fe6e15f 100644
--- a/sys/src/libthread/threadimpl.h
+++ b/sys/src/libthread/threadimpl.h
@@ -48,7 +48,6 @@ enum
{
RENDHASH = 13,
Printsize = 2048,
- NPRIV = 8,
};
struct Rgrp
@@ -92,7 +91,7 @@ struct Thread
Chanstate chan; /* which channel operation is current */
Alt *alt; /* pointer to current alt structure (debugging) */
- void* udata[NPRIV]; /* User per-thread data pointer */
+ void* udata; /* User per-thread data pointer */
};
struct Execargs
@@ -131,7 +130,6 @@ struct Proc
void *arg; /* passed between shared and unshared stk */
char str[ERRMAX]; /* used by threadexits to avoid malloc */
- void* wdata; /* Lib(worker) per-proc data pointer */
void* udata; /* User per-proc data pointer */
char threadint; /* tag for threadexitsall() */
};