* Added THREAD_BLOCK_TYPE_OTHER.
* Made the object pointer passed to thread_prepare_to_block() const, so that strings can be passed without casting. Passing a string could maybe be made a convention for THREAD_BLOCK_TYPE_OTHER. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25109 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -139,7 +139,7 @@ thread_is_blocked(struct thread* thread)
|
||||
*/
|
||||
static inline void
|
||||
thread_prepare_to_block(struct thread* thread, uint32 flags, uint32 type,
|
||||
void* object)
|
||||
const void* object)
|
||||
{
|
||||
thread->wait.flags = flags;
|
||||
thread->wait.type = type;
|
||||
|
||||
Reference in New Issue
Block a user