summaryrefslogtreecommitdiff
path: root/core/thread
Commit message (Collapse)AuthorAgeFilesLines
* thread: mbox: fix return value for mbox_fetch()threadH. Peter Anvin2009-09-101-2/+6
| | | | | | Make mbox_fetch() actually return the time spent waiting. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: thread: move most thread state to stack; task switch errnoH. Peter Anvin2009-09-093-19/+38
| | | | | | | Move most our thread state to the stack. Task switch the errno variable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: thread: merge mbox_post() and mbox_trypost()H. Peter Anvin2009-09-091-14/+3
| | | | | | | Merge mbox_post() and mbox_trypost() into a single function with a timeout parameter. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: add simple mailbox libraryH. Peter Anvin2009-09-091-0/+64
| | | | | | A very simple mailbox library, designed for lwIP porting. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: thread: add option to not wait on a semaphore at allH. Peter Anvin2009-09-091-26/+33
| | | | | | | Implement a "trywait" option... if timeout is set to -1, then timeout immediately if the semaphore isn't available. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: thread: have start_thread() allocate memory dynamicallyH. Peter Anvin2009-09-093-10/+16
| | | | | | | | Have start_thread() allocate memory dynamically, using malloc(). XXX: should probably free that memory in __exit_thread()... could be "interesting". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: simple thread libraryH. Peter Anvin2009-09-0810-0/+332
Simple thread library with the intent of making lwIP easier to port. Signed-off-by: H. Peter Anvin <hpa@zytor.com>