RFR: 8011882: Replace spin loops as back off when suspending
David Holmes
david.holmes at oracle.com
Thu Apr 11 16:04:11 PDT 2013
On 11/04/2013 11:02 PM, Rickard Bäckman wrote:
> On Apr 11, 2013, at 2:39 PM, David Holmes wrote:
>> So what did you mean about pthread_semaphore (what is that anyway?) ??
>
> Never mind, pthread condition variables.
Ah I see.
>>
>> I really, really, really don't like seeing three versions of this class :( Can't BSD and Linux at least share a POSIX version? (And I wonder if we can actually mix-n-match UI threads on Solaris with POSIX semaphores on Solaris?)
>
> I don't like it either, our OS code isn't really helpful when it comes do reusing things :) Not sure how I would layout things to make them only available on BSD (Not Mac) and Linux. I guess os_posix.hpp with lots of #ifdefs, but I'm not sure I"m feeling that happy about that.
Why would the os_posix version need a lot of ifdefs?
Do we really have four versions:
- linux (posix)
- BSD (posix)
- Solaris
- Mac (different to BSD?)
??
David
-----
More information about the serviceability-dev
mailing list