Parallel
advmutex.c
Associated article: File Descriptors And Multithreaded Programs
Tags: C/C++ Tools Parallel Design
Published source code accompanying the article by Sergey Babkin in which he presents Advanced Mutex, a parallel programming pattern.
stream_source_info myfile stream_content_type text/plain stream_size 2964 Content-Encoding ISO-8859-1 stream_name advmutex.c Content-Type text/plain
Listing One
// "state" contains the library-level socket state
while(true) {
int len = read(state.fd, inbuf, sizeof(...


