Chromium Code Reviews
Description[NaCl SDK] nacl_io: Add support for basic socketpairs.
This is a very basic implementation of a unix socketpair. The socket
nodes have type S_IFSOCK.
The event emitter are set up in a master/slave configuration, the master
owns the fifos and slave handles. The slave has a strong reference to
its master (since it depends on it, cannot survive alone). Each emitter
in the pair has their own status, but share the pair of fifos and use a
single lock in the master to synchronize their access.
Shutdown should be rather simple to bolt on to this implementation.
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk
BUG=532095
Committed: https://crrev.com/e40c14e14250a5b3ea235ae0ec846b84d2be73ae
Cr-Commit-Position: refs/heads/master@{#350849}
Patch Set 1 #
Total comments: 24
Patch Set 2 : #Patch Set 3 : Renamed socket node and emitter, added tests. #Patch Set 4 : Class renamed/cl-format applied. #
Total comments: 12
Patch Set 5 : #Messages
Total messages: 39 (13 generated)
|