[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-bugs
Subject: [haiku-bugs] Re: [Haiku] #5336: pthread_mutex_trylock() hangs
From: "bonefish" <trac () haiku-os ! org>
Date: 2010-01-29 16:30:03
Message-ID: 051.77c2d685fe8a0e1c69ee46e0e1a10923 () haiku-os ! org
[Download RAW message or body]
#5336: pthread_mutex_trylock() hangs
--------------------------+-------------------------------------------------
Reporter: kaliber | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: System/POSIX | Version: R1/Development
Keywords: | Blockedby:
Platform: All | Blocking:
--------------------------+-------------------------------------------------
Comment(by bonefish):
Confirmed. The pthread_mutex_trylock() implementation is incorrect. It
should not even touch the semaphore, but instead use atomic_test_and_set()
on the count. Moreover the kernel's thread_block_with_timeout_locked()
needs to check for an overflow in case B_TIMEOUT_REAL_TIME_BASE is set.
--
Ticket URL: <http://dev.haiku-os.org/ticket/5336#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic