libthread: remove unimplemented chaninit

This commit is contained in:
Russ Cox 2009-04-30 08:00:40 -07:00
parent 4aad1a3258
commit 9ea7f9d82f
2 changed files with 2 additions and 8 deletions

View file

@ -107,7 +107,6 @@ struct Channel
int chanalt(Alt *alts); int chanalt(Alt *alts);
Channel* chancreate(int elemsize, int elemcnt); Channel* chancreate(int elemsize, int elemcnt);
void chanfree(Channel *c); void chanfree(Channel *c);
int chaninit(Channel *c, int elemsize, int elemcnt);
int channbrecv(Channel *c, void *v); int channbrecv(Channel *c, void *v);
void* channbrecvp(Channel *c); void* channbrecvp(Channel *c);
ulong channbrecvul(Channel *c); ulong channbrecvul(Channel *c);

View file

@ -3,7 +3,6 @@
alt, alt,
chancreate, chancreate,
chanfree, chanfree,
chaninit,
chanprint, chanprint,
chansetname, chansetname,
mainstacksize, mainstacksize,
@ -105,7 +104,6 @@ char* threadgetname(void)
void** threaddata(void) void** threaddata(void)
void** procdata(void) void** procdata(void)
.XX .XX
int chaninit(Channel *c, int elsize, int nel)
Channel* chancreate(int elsize, int nel) Channel* chancreate(int elsize, int nel)
void chanfree(Channel *c) void chanfree(Channel *c)
.XX .XX
@ -449,9 +447,8 @@ operation blocks until the corresponding
.I recv .I recv
operation occurs and operation occurs and
.IR "vice versa" . .IR "vice versa" .
.I Chaninit .IR Chancreate
initializes a allocates a new channel
.B Channel
for messages of size for messages of size
.I elsize .I elsize
and with a buffer holding and with a buffer holding
@ -460,8 +457,6 @@ messages.
If If
.I nel .I nel
is zero, the channel is unbuffered. is zero, the channel is unbuffered.
.IR Chancreate
allocates a new channel and initializes it.
.I Chanfree .I Chanfree
frees a channel that is no longer used. frees a channel that is no longer used.
.I Chanfree .I Chanfree