kernel: rebuild object ref-counting using atomic types
This commit is contained in:
@@ -334,11 +334,10 @@ void task_exit(int status)
|
||||
self->t_name,
|
||||
self->t_id,
|
||||
cur_thread->tr_id);
|
||||
tracek("task %s[%u] killed (%u, %u)",
|
||||
tracek("task %s[%u] killed (%u)",
|
||||
self->t_name,
|
||||
self->t_id,
|
||||
self->t_base.ob_refcount,
|
||||
self->t_base.ob_handles);
|
||||
self->t_base.ob_refcount);
|
||||
spin_unlock_irqrestore(handles_lock, flags);
|
||||
|
||||
while (1) {
|
||||
@@ -359,7 +358,7 @@ kern_status_t task_open_handle(
|
||||
return status;
|
||||
}
|
||||
|
||||
object_add_handle(obj);
|
||||
object_ref(obj);
|
||||
handle_data->h_object = obj;
|
||||
handle_data->h_flags = flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user