Document Empire's thread abstraction. Minor cleanups:
(empth_init): Change first parameter to void **. (empth_sleep): Change parameter to time_t.
This commit is contained in:
parent
89087bef17
commit
060df4ec8f
5 changed files with 132 additions and 20 deletions
|
@ -38,9 +38,9 @@
|
|||
#ifdef _EMPTH_LWP
|
||||
|
||||
int
|
||||
empth_init(char **ctx, int flags)
|
||||
empth_init(void **ctx, int flags)
|
||||
{
|
||||
lwpInitSystem(7, ctx, flags);
|
||||
lwpInitSystem(7, (char **)ctx, flags);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ empth_wakeup(empth_t *a)
|
|||
}
|
||||
|
||||
void
|
||||
empth_sleep(long int until)
|
||||
empth_sleep(time_t until)
|
||||
{
|
||||
lwpSleepUntil(until);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue