On Tue, Sep 28, 2010 at 5:38 PM, Evan Jones <[email protected]> wrote: > On Sep 28, 2010, at 18:36 , Patrick wrote: > >> I also have the problem that the RPC I wrote comes in a threaded model >> and a multi-process model. The multi-process one makes some things a >> bit harder. I was hoping to utilize a shm mutex to signal termination >> but this would only work if my message parsing loop timed out every so >> often and, therefore, could check the mutex. >> > > This should be pretty easy to achieve by supplying your own implementation > of FileInputStream that uses select() and a non-blocking read() rather than > just read(). It can then fail the call to Next() whenever it is convenient. >
Oh duh, why didn't I think of that? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
