Re: improving threading / osl::Condition abstraction ...

2013-12-02 Thread Michael Meeks
On Mon, 2013-12-02 at 09:29 +0100, Stephan Bergmann wrote: > But sure, the abstraction as-is is practically a disaster. Great - added the health warning to master =) > Given that threading primitives are standardized since C++11, I think it > makes more sense in the long run to deprecat

Re: improving threading / osl::Condition abstraction ...

2013-12-02 Thread Stephan Bergmann
On 11/28/2013 07:00 PM, Michael Meeks wrote: +/** + * Warning: the Condition abstraction is inadequate for any + * situation where there may be multiple threads waiting on + * the same condition. It can only be used to synchronise + * interactions between two threads cf. lost

improving threading / osl::Condition abstraction ...

2013-11-28 Thread Michael Meeks
Hi there, I was writing a thread-pool class the other day - against the clock cf. master's sc/source/filter/oox/threadpool.* - and it was interesting to become a victim of the apparently well known lost wakeup issue that our approach to osl::Conditions creates. I propose the follo