|
Scrambler
1
|
Go to the source code of this file.
Functions/Subroutines | |
| void | fpth_init_ (int *ierr) |
| void | fpth_spawn_ (pth_t *thread, pth_attr_t *attr, void(*start_routine)(void *), void *data) |
| void | fpth_resume_ (pth_t *thread, int *ierr) |
| void | fpth_suspend_ (pth_t *thread, int *ierr) |
| void | fpth_yield_ (pth_t *thread, int *ierr) |
| void | fpth_yield_any_ (int *ierr) |
| void | fpth_join_ (pth_t *thread, void **value, int *ierr) |
| void | fpth_exit_ (void *data) |
| void | fpth_self_ (pth_t *thread) |
| void | fpth_attr_of_ (pth_attr_t *attr, pth_t *thread) |
| void | fpth_attr_new_ (pth_attr_t *attr) |
| void | fpth_attr_init_ (pth_attr_t *attr, int *ierr) |
| void | fpth_attr_get_ (pth_attr_t *attr, int *field, void *data, int *ierr) |
| void | fpth_attr_get_stacksize_ (pth_attr_t *attr, int *data, int *ierr) |
| void | fpth_attr_set_stacksize_ (pth_attr_t *attr, int *data, int *ierr) |
| void | fpth_attr_set_prio_ (pth_attr_t *attr, int *data, int *ierr) |
| void fpth_init_ | ( | int * | ierr | ) |
Definition at line 35 of file fpth_lib.c.
{
*ierr = pth_init();
return;
}
| void fpth_spawn_ | ( | pth_t * | thread, |
| pth_attr_t * | attr, | ||
| void(*)(void *) | start_routine, | ||
| void * | data | ||
| ) |
Definition at line 42 of file fpth_lib.c.
{
*thread = pth_spawn(*attr, (void*)start_routine, data);
return;
}
| void fpth_resume_ | ( | pth_t * | thread, |
| int * | ierr | ||
| ) |
Definition at line 49 of file fpth_lib.c.
{
*ierr = pth_resume(*thread);
return;
}
| void fpth_suspend_ | ( | pth_t * | thread, |
| int * | ierr | ||
| ) |
Definition at line 55 of file fpth_lib.c.
{
*ierr = pth_suspend(*thread);
return;
}
| void fpth_yield_ | ( | pth_t * | thread, |
| int * | ierr | ||
| ) |
Definition at line 61 of file fpth_lib.c.
{
*ierr = pth_yield(*thread);
return;
}
| void fpth_yield_any_ | ( | int * | ierr | ) |
Definition at line 67 of file fpth_lib.c.
{
*ierr = pth_yield(NULL);
return;
}
| void fpth_join_ | ( | pth_t * | thread, |
| void ** | value, | ||
| int * | ierr | ||
| ) |
Definition at line 73 of file fpth_lib.c.
{
*ierr = pth_join(*thread,(void**) value);
return;
}
| void fpth_exit_ | ( | void * | data | ) |
Definition at line 79 of file fpth_lib.c.
{
pth_exit((void *)data);
return;
}
| void fpth_self_ | ( | pth_t * | thread | ) |
Definition at line 86 of file fpth_lib.c.
{
*thread = pth_self();
return;
}
| void fpth_attr_of_ | ( | pth_attr_t * | attr, |
| pth_t * | thread | ||
| ) |
Definition at line 93 of file fpth_lib.c.
{
*attr=pth_attr_of(*thread);
return;
}
| void fpth_attr_new_ | ( | pth_attr_t * | attr | ) |
Definition at line 99 of file fpth_lib.c.
{
*attr=pth_attr_new();
return;
}
| void fpth_attr_init_ | ( | pth_attr_t * | attr, |
| int * | ierr | ||
| ) |
Definition at line 105 of file fpth_lib.c.
{
*ierr=pth_attr_init(*attr);
return;
}
| void fpth_attr_get_ | ( | pth_attr_t * | attr, |
| int * | field, | ||
| void * | data, | ||
| int * | ierr | ||
| ) |
Definition at line 119 of file fpth_lib.c.
{
*ierr=pth_attr_get(*attr, *field, data);
return;
}
| void fpth_attr_get_stacksize_ | ( | pth_attr_t * | attr, |
| int * | data, | ||
| int * | ierr | ||
| ) |
Definition at line 125 of file fpth_lib.c.
{
unsigned stacksize;
*ierr=pth_attr_get(*attr, PTH_ATTR_STACK_SIZE, stacksize);
*data=stacksize;
return;
}
| void fpth_attr_set_stacksize_ | ( | pth_attr_t * | attr, |
| int * | data, | ||
| int * | ierr | ||
| ) |
Definition at line 133 of file fpth_lib.c.
{
unsigned stacksize;
stacksize = *data;
*ierr=pth_attr_set(*attr, PTH_ATTR_STACK_SIZE, stacksize);
return;
}
| void fpth_attr_set_prio_ | ( | pth_attr_t * | attr, |
| int * | data, | ||
| int * | ierr | ||
| ) |
Definition at line 142 of file fpth_lib.c.
{
*ierr=pth_attr_set(*attr, PTH_ATTR_PRIO, *data);
return;
}