aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-04-30 08:00:40 -0700
committerRuss Cox <rsc@swtch.com>2009-04-30 08:00:40 -0700
commit9ea7f9d82f3b929853016ccd12dfd5c044e95d07 (patch)
tree92ad233b3fde44e252834e6d391d02e281cd633c
parent4aad1a325813fa6eed5d29d5dd31f18eae1f006d (diff)
downloadplan9port-9ea7f9d82f3b929853016ccd12dfd5c044e95d07.tar.gz
plan9port-9ea7f9d82f3b929853016ccd12dfd5c044e95d07.tar.bz2
plan9port-9ea7f9d82f3b929853016ccd12dfd5c044e95d07.zip
libthread: remove unimplemented chaninit
-rw-r--r--include/thread.h1
-rw-r--r--man/man3/thread.39
2 files changed, 2 insertions, 8 deletions
diff --git a/include/thread.h b/include/thread.h
index 739fe0fe..43c35bf3 100644
--- a/include/thread.h
+++ b/include/thread.h
@@ -107,7 +107,6 @@ struct Channel
int chanalt(Alt *alts);
Channel* chancreate(int elemsize, int elemcnt);
void chanfree(Channel *c);
-int chaninit(Channel *c, int elemsize, int elemcnt);
int channbrecv(Channel *c, void *v);
void* channbrecvp(Channel *c);
ulong channbrecvul(Channel *c);
diff --git a/man/man3/thread.3 b/man/man3/thread.3
index 3a63ee7d..7f5cd69c 100644
--- a/man/man3/thread.3
+++ b/man/man3/thread.3
@@ -3,7 +3,6 @@
alt,
chancreate,
chanfree,
-chaninit,
chanprint,
chansetname,
mainstacksize,
@@ -105,7 +104,6 @@ char* threadgetname(void)
void** threaddata(void)
void** procdata(void)
.XX
-int chaninit(Channel *c, int elsize, int nel)
Channel* chancreate(int elsize, int nel)
void chanfree(Channel *c)
.XX
@@ -449,9 +447,8 @@ operation blocks until the corresponding
.I recv
operation occurs and
.IR "vice versa" .
-.I Chaninit
-initializes a
-.B Channel
+.IR Chancreate
+allocates a new channel
for messages of size
.I elsize
and with a buffer holding
@@ -460,8 +457,6 @@ messages.
If
.I nel
is zero, the channel is unbuffered.
-.IR Chancreate
-allocates a new channel and initializes it.
.I Chanfree
frees a channel that is no longer used.
.I Chanfree