(empth_setctx): Unused, remove.
This commit is contained in:
parent
e15b7e2b9a
commit
bf61ce9f38
2 changed files with 1 additions and 29 deletions
|
@ -55,16 +55,6 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
|
||||||
return lwpCreate(prio, entry, size, flags, name, desc, 0, 0, ud);
|
return lwpCreate(prio, entry, size, flags, name, desc, 0, 0, ud);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* This is unused now? */
|
|
||||||
void
|
|
||||||
empth_setctx(void *ctx)
|
|
||||||
{
|
|
||||||
/* lwp does it automatically */
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
empth_t *
|
empth_t *
|
||||||
empth_self(void)
|
empth_self(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -178,7 +178,7 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
|
||||||
|
|
||||||
ctx = malloc(sizeof(empth_t));
|
ctx = malloc(sizeof(empth_t));
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
logerror("not enough memoty to create thread: %s (%s)", name,
|
logerror("not enough memory to create thread: %s (%s)", name,
|
||||||
desc);
|
desc);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -234,24 +234,6 @@ empth_create(int prio, void (*entry)(void *), int size, int flags,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
static void
|
|
||||||
empth_setctx(void *ct)
|
|
||||||
{
|
|
||||||
empth_t *ctx_ptr;
|
|
||||||
|
|
||||||
#ifdef _DECTHREADS_
|
|
||||||
pthread_getspecific(ctx_key, (pthread_addr_t *) & ctx_ptr);
|
|
||||||
#else
|
|
||||||
ctx_ptr = (empth_t *)pthread_getspecific(ctx_key);
|
|
||||||
#endif
|
|
||||||
ctx_ptr->ud = ct;
|
|
||||||
*udata = ctx_ptr->ud;
|
|
||||||
pthread_setspecific(ctx_key, ctx_ptr);
|
|
||||||
empth_status("context saved");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
empth_restorectx(void)
|
empth_restorectx(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue