mirror of
https://github.com/gosticks/RIOT.git
synced 2026-08-21 09:20:23 +00:00
core: rename tcb_t -> thread_t, move into thread.h
This commit is contained in:
@@ -40,7 +40,7 @@ void condition_variable::notify_one() noexcept {
|
||||
priority_queue_node_t* head = priority_queue_remove_head(&m_queue);
|
||||
int other_prio = -1;
|
||||
if (head != NULL) {
|
||||
tcb_t* other_thread = (tcb_t*)sched_threads[head->data];
|
||||
thread_t* other_thread = (thread_t*)sched_threads[head->data];
|
||||
if (other_thread) {
|
||||
other_prio = other_thread->priority;
|
||||
sched_set_status(other_thread, STATUS_PENDING);
|
||||
@@ -61,7 +61,7 @@ void condition_variable::notify_all() noexcept {
|
||||
if (head == NULL) {
|
||||
break;
|
||||
}
|
||||
tcb_t* other_thread = (tcb_t*)sched_threads[head->data];
|
||||
thread_t* other_thread = (thread_t*)sched_threads[head->data];
|
||||
if (other_thread) {
|
||||
auto max_prio
|
||||
= [](int a, int b) { return (a < 0) ? b : ((a < b) ? a : b); };
|
||||
|
||||
Reference in New Issue
Block a user