rt: Make the rust_task_thread lock private
This commit is contained in:
@@ -107,8 +107,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state,
|
|||||||
void
|
void
|
||||||
rust_task::delete_this()
|
rust_task::delete_this()
|
||||||
{
|
{
|
||||||
I(thread, !thread->lock.lock_held_by_current_thread());
|
|
||||||
|
|
||||||
{
|
{
|
||||||
scoped_lock with (lock);
|
scoped_lock with (lock);
|
||||||
I(thread, port_table.is_empty());
|
I(thread, port_table.is_empty());
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ struct rust_task_thread : public kernel_owned<rust_task_thread>,
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
lock_and_signal lock;
|
||||||
|
|
||||||
// Fields known only by the runtime:
|
// Fields known only by the runtime:
|
||||||
rust_log _log;
|
rust_log _log;
|
||||||
|
|
||||||
@@ -76,8 +78,6 @@ public:
|
|||||||
rust_scheduler *sched;
|
rust_scheduler *sched;
|
||||||
rust_srv *srv;
|
rust_srv *srv;
|
||||||
|
|
||||||
lock_and_signal lock;
|
|
||||||
|
|
||||||
rust_task_list newborn_tasks;
|
rust_task_list newborn_tasks;
|
||||||
rust_task_list running_tasks;
|
rust_task_list running_tasks;
|
||||||
rust_task_list blocked_tasks;
|
rust_task_list blocked_tasks;
|
||||||
|
|||||||
Reference in New Issue
Block a user