haiku/src/system
Ingo Weinhold 146f113fec Fixed issues with the scheduling events. In the listener callbacks we
potentially want to notify the profiler thread (i.e. wake it up), which can
cause another scheduling event notification. That is we have to make sure that
event buffer is in a consistent state at that point (i.e. wake up the thread
at the very end of the callbacks). Furthermore the ThreadEnqueuedInRunQueue()
callback can be called with spinlocks besides the thread spinlock being held. In
particular waking up threads also happens in the condition variable code with
a static spinlock being held. Trying to notify the condition variable the
profiler thread is waiting on in such a case would be a guaranteed deadlock.
Hence we avoid doing that, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 22:15:27 +00:00
..
boot * Changed directory structure as suggested on the mailing list. 2009-04-03 09:02:44 +00:00
glue * Introduced new header directory headers/private/system which is supposed 2008-05-14 03:55:16 +00:00
kernel Fixed issues with the scheduling events. In the listener callbacks we 2009-04-22 22:15:27 +00:00
ldscripts Merge in all .text.Z* sections back to .text... 2008-11-12 00:14:07 +00:00
libroot Don't use exit() when compiling for the kernel. 2009-04-08 16:48:32 +00:00
runtime_loader ignore Stack type in elf loader 2009-04-10 03:28:00 +00:00
Jamfile Reorganized building of kernel, boot loader, and libroot. 2005-11-27 00:27:19 +00:00