mirror of
https://github.com/golang/go
synced 2024-11-22 00:34:40 -07:00
parent
2d3e47ca10
commit
a674c024c7
@ -157,7 +157,7 @@ func videoPollEvent(ev []byte) (err os.Error) {
|
|||||||
if r == bridge.share.eq.wi {
|
if r == bridge.share.eq.wi {
|
||||||
return noEvents
|
return noEvents
|
||||||
}
|
}
|
||||||
copy(ev, &bridge.share.eq.event[r])
|
copy(ev, bridge.share.eq.event[r][0:])
|
||||||
bridge.share.eq.ri = (r + 1) % eqsize
|
bridge.share.eq.ri = (r + 1) % eqsize
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ func (r *msgReceiver) recv() (*msg, os.Error) {
|
|||||||
// returned the total byte count as n.
|
// returned the total byte count as n.
|
||||||
m := new(msg)
|
m := new(msg)
|
||||||
m.rdata = make([]byte, n)
|
m.rdata = make([]byte, n)
|
||||||
copy(m.rdata, &r.data)
|
copy(m.rdata, r.data[0:])
|
||||||
|
|
||||||
// Make a copy of the desc too.
|
// Make a copy of the desc too.
|
||||||
// The system call *did* update r.hdr.ndesc.
|
// The system call *did* update r.hdr.ndesc.
|
||||||
|
Loading…
Reference in New Issue
Block a user