core: rename tcb_t -> thread_t, move into thread.h

This commit is contained in:
Kaspar Schleiser
2016-03-05 18:20:17 +01:00
parent 32d48bb16b
commit 2b010b5337
22 changed files with 152 additions and 185 deletions
+2 -2
View File
@@ -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); };