diff --git a/headers/private/kernel/thread.h b/headers/private/kernel/thread.h index 1a93316c77..90dd6d9e90 100644 --- a/headers/private/kernel/thread.h +++ b/headers/private/kernel/thread.h @@ -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; diff --git a/headers/private/kernel/thread_types.h b/headers/private/kernel/thread_types.h index 3f75ae6a87..ac3240e783 100644 --- a/headers/private/kernel/thread_types.h +++ b/headers/private/kernel/thread_types.h @@ -62,6 +62,8 @@ enum { THREAD_BLOCK_TYPE_CONDITION_VARIABLE = 1, THREAD_BLOCK_TYPE_SNOOZE = 2, THREAD_BLOCK_TYPE_SIGNAL = 3, + + THREAD_BLOCK_TYPE_OTHER = 9999, THREAD_BLOCK_TYPE_USER_BASE = 10000 }; @@ -246,7 +248,7 @@ struct thread { status_t status; // current wait status uint32 flags; // interrupable flags uint32 type; // type of the object waited on - void* object; // pointer to the object waited on + const void* object; // pointer to the object waited on timer unblock_timer; // timer for block with timeout } wait;