|
From: Julian S. <js...@ac...> - 2010-06-03 08:42:42
|
> With Valgrind it seems to be a bit trickier: if we call sleep() inside a > helper function we will block the whole process because Valgrind is > single-threaded. > Question: how can I sleep in a helper function so that other threads get a > chance to run? I don't think you can, unfortunately. I can't think of any remotely sane way to do it. (Or even any insane ones). Really Valgrind needs to be made multithreaded, but that's a big job. J |