linux diffs.
This commit is contained in:
parent
d0bc889a8a
commit
b214663d34
2 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ struct Mux
|
|||
void *aux; /* for private use by client */
|
||||
|
||||
/* private */
|
||||
QLock lk;
|
||||
QLock lk; /* must be first for muxinit */
|
||||
QLock inlk;
|
||||
QLock outlk;
|
||||
Rendez tagrend;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ static void dequeue(Mux*, Muxrpc*);
|
|||
void
|
||||
muxinit(Mux *mux)
|
||||
{
|
||||
memset(&mux->lk, 0, sizeof(Mux)-offsetof(Mux, lk));
|
||||
mux->tagrend.l = &mux->lk;
|
||||
mux->rpcfork.l = &mux->lk;
|
||||
mux->sleep.next = &mux->sleep;
|
||||
mux->sleep.prev = &mux->sleep;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue