"kk yap" <[EMAIL PROTECTED]> writes: > I was creating a threaded NOX application (in C/C++). I used the > cooperative thread class provided and has sucessfully spawned a > thread. However, it seems like my thread takes up all the processing. > The new thread basically runs server socket listening for messages, > which is tested to be working. Though the rest of the NOX > applications seems to have come to a standstill.
You need to use the cooperative thread functions to wait for events. See include/threads/cooperative.hh, especially Co_task::fd_wait() and Co_thread::block(). -- Ben Pfaff Nicira Networks, Inc. _______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
