]> git.pond.sub.org Git - empserver/blobdiff - src/lib/lwp/lwpint.h
(empth_init_signals): Don't catch SIGINT and SIGTERM.
[empserver] / src / lib / lwp / lwpint.h
index e8895ca6808a19ca547cb46ff16cba613a331253..2f1edcd7c240ea80b1a4befcb3701a7e8993c4e6 100644 (file)
 #include <setjmp.h>
 #endif /* !UCONTEXT */
 
-/* `liveness' counter: check signals every `n' visits to the scheduler */
-/* note: the lower this value, the more responsive the system but the */
-/* more inefficient the context switch time */
-#define LCOUNT -1
-
 /* process control block.  do *not* change the position of context */
 struct lwpProc {
 #ifdef UCONTEXT
@@ -98,7 +93,11 @@ struct lwpProc *lwpGetFirst(struct lwpQueue *);
 void lwpReady(struct lwpProc *);
 void lwpReschedule(void);
 void lwpEntryPoint(void);
-void lwpInitSelect(struct lwpProc * self);
-void lwpDestroy(struct lwpProc * proc);
+void lwpInitSelect(struct lwpProc *);
+void lwpSelect(void *);
+void lwpInitSigWait(sigset_t *);
+void lwpSigWakeup(void);
+void lwpStatus(struct lwpProc *, char *, ...)
+    ATTRIBUTE((format (printf, 2, 3)));
 
 #endif