diff --git a/src/lib/empthread/lwp.c b/src/lib/empthread/lwp.c index 353c4de6..014640fe 100644 --- a/src/lib/empthread/lwp.c +++ b/src/lib/empthread/lwp.c @@ -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); } -#if 0 -/* This is unused now? */ -void -empth_setctx(void *ctx) -{ - /* lwp does it automatically */ - return; -} -#endif - empth_t * empth_self(void) { diff --git a/src/lib/empthread/pthread.c b/src/lib/empthread/pthread.c index bdd925c9..41e4fe1a 100644 --- a/src/lib/empthread/pthread.c +++ b/src/lib/empthread/pthread.c @@ -178,7 +178,7 @@ empth_create(int prio, void (*entry)(void *), int size, int flags, ctx = malloc(sizeof(empth_t)); if (!ctx) { - logerror("not enough memoty to create thread: %s (%s)", name, + logerror("not enough memory to create thread: %s (%s)", name, desc); 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 empth_restorectx(void) {