mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 11:15:59 +01:00
6fde258427
The previous code used kill_thread() and then destroyed the common RingBuffer. This wasn't working, and as Axel notes it's not really working on kernel side. * Added RingBuffer::DestroyLock * Changed the thread to exit gracefully on RingBuffer semaphore destruction. * Changed close function to destroy RingBuffer sem, wait_for_thread and then destroy resources. * Minor code style fixes. (And also my first commit.) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33795 a95241bf-73f2-0310-859d-f6bbb57e9c96