Changeset d314571 in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2018-11-11T15:46:26Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e889f6
Parents:
5c03bd30
git-author:
Jakub Jermar <jakub@…> (2018-11-10 14:36:06)
git-committer:
Jakub Jermar <jakub@…> (2018-11-11 15:46:26)
Message:

Turn wait queue into a kobject usable by uspace

In order to provide an elegant synchronization mechanism for userspace,
this commit adds syscalls to create, sleep on and wakeup from a wait
queue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    r5c03bd30 rd314571  
    4848#include <synch/spinlock.h>
    4949#include <synch/waitq.h>
     50#include <synch/syswaitq.h>
    5051#include <cpu.h>
    5152#include <str.h>
     
    520521                        ipc_cleanup();
    521522                        futex_task_cleanup();
     523                        sys_waitq_task_cleanup();
    522524                        LOG("Cleanup of task %" PRIu64 " completed.", TASK->taskid);
    523525                }
Note: See TracChangeset for help on using the changeset viewer.