By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,497 Members | 2,166 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,497 IT Pros & Developers. It's quick & easy.

Sleep() ?

P: n/a
I have to wait in a loop until some condition is true.
What I want is to have some function that doesn't take the resources
while waiting.

Thanks for any suggestions.
Nov 12 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Nov 12, 12:26*pm, Uli Kunkel <genija...@yahoo.comwrote:
I have to wait in a loop until some condition is true.
What I want is to have some function that doesn't take the resources
while waiting.
Take a look at wait_for_data_to_process() function in
http://www.boost.org/doc/libs/1_37_0...on.condvar_ref

--
Max
Nov 12 '08 #2

P: n/a
On Nov 12, 5:26*pm, Uli Kunkel <genija...@yahoo.comwrote:
I have to wait in a loop until some condition is true.
What I want is to have some function that doesn't take the resources
while waiting.

Thanks for any suggestions.
I thinks he is looking for something like "select" function.
Nov 13 '08 #3

P: n/a
I thinks he is looking for something like "select" function.
Sorry typo, the correct form would be

I think he is looking for something like "select" function.

Try googling for "select function"
Nov 13 '08 #4

P: n/a
Maxim Yegorushkin wrote:
On Nov 12, 12:26 pm, Uli Kunkel <genija...@yahoo.comwrote:
>I have to wait in a loop until some condition is true.
What I want is to have some function that doesn't take the resources
while waiting.

Take a look at wait_for_data_to_process() function in
http://www.boost.org/doc/libs/1_37_0...on.condvar_ref

--
Max
I think that external library (50MB) is maybe a overkill for just this
one task.
Is there some other solution?
Nov 14 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.