Does select() lock a thread? Topic is solved

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
I live to help wx-kind
I live to help wx-kind
Posts: 172
Joined: Thu Jun 26, 2008 8:50 pm

Does select() lock a thread?

Post by rodrigod » Mon May 25, 2009 2:53 pm

I am writing a multi-thread application that each thread watches over a serial communication device. I want to know that if you do a select() to wait until the we receive something from the device or the timeout expires does it lock the whole application while waiting or does it lock only the thread.

If it locks the whole application, what could I use to make it work like a mutex or condition?


Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Mon May 25, 2009 6:21 pm

It only blocks the calling thread.

Post Reply