mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
libthread: remove unimplemented chaninit
This commit is contained in:
parent
4aad1a3258
commit
9ea7f9d82f
2 changed files with 2 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue