[Boost.Test] multithreading

Hi! I have started some experiment with boost.test library, and I found it very flexible and quite simple to use. My question is very simple: what are guaranties about multithreading ? Can I call BOOST_CHECK from different threads ? Can I check predicates that internally call synchronization functions (i.e. waitformultipleobjects) ? Thank a lot for any suggestion. Andrea

"Andrea Murru"
Hi! I have started some experiment with boost.test library, and I found it very flexible and quite simple to use. My question is very simple: what are guaranties about multithreading ?
As of now Boost.Test routines are reentrant, but not thread safe unfortunately. There some kind of solution should appear in 1.35. My primary concern is portabilty. I need to decide what I can rely upon.
Can I call BOOST_CHECK from different threads ?
No. Unless you will sync the calls.
Can I check predicates that internally call synchronization functions (i.e. waitformultipleobjects) ?
I am not sure.
Thank a lot for any suggestion.
Andrea
Gennadiy
participants (2)
-
Andrea Murru
-
Gennadiy Rozental