[haiku-bugs] [Haiku] #6400: BLocker won't unlock from a different thread

  • From: "darkwyrm" <trac@xxxxxxxxxxxx>
  • Date: Wed, 28 Jul 2010 17:08:56 -0000

#6400: BLocker won't unlock from a different thread
-----------------------------+----------------------------------------------
   Reporter:  darkwyrm       |        Owner:  axeld    
       Type:  bug            |       Status:  new      
   Priority:  normal         |    Milestone:  R1       
  Component:  System/Kernel  |      Version:  R1/alpha2
   Keywords:                 |   Blocked By:           
Has a Patch:  0              |     Platform:  All      
   Blocking:                 |  
-----------------------------+----------------------------------------------
 Once again my Paladin development efforts have uncovered another system-
 level bug.

 It seems that if a BLocker is locked from one thread and unlocked from
 another, the Unlock fails. I've written a quick test app which locks a
 BLocker from within the main window's constructor and unlocks it in
 QuitRequested. The BLocker's status is then tested in the App class'
 destructor. When built and run under Zeta, the lock is unlocked. Under
 Haiku, it is still locked. I am attaching the test program momentarily.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6400>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: