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)
{
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;
}
}
-#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)
{