main loop & asynchronous queues

Does glib allow for things like a two threaded program with inter-thread communication via async queues while each thread has a separate main loop waiting for both external stimulus and new queue messages to arrive? In other words, a) can a main loop be made to run a callback when a queue message arrives without polling (possibly futex based on linux), and b) can two threads each have a main loop?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]