]> 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 2db453b478427df1237511ed70a4dd4e1095ad28..2f1edcd7c240ea80b1a4befcb3701a7e8993c4e6 100644 (file)
@@ -1,26 +1,37 @@
 /*
- * lwpint.h -- lwp internal structures
+ *  Empire - A multi-player, client/server Internet based war game.
+ *  Copyright (C) 1994-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *                           Ken Stevens, Steve McClure
+ *  Copyright (C) 1991-3 Stephen Crane
  *
- * Copyright (C) 1991-3 Stephen Crane.
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- * 
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ *  ---
+ *
+ *  See files README, COPYING and CREDITS in the root of the source
+ *  tree for related information and legal notices.  It is expected
+ *  that future projects/authors will amend these files as needed.
  *
- * author: Stephen Crane, (jsc@doc.ic.ac.uk), Department of Computing,
- * Imperial College of Science, Technology and Medicine, 180 Queen's
- * Gate, London SW7 2BZ, England.
+ *  ---
+ *
+ *  lwpint.h: lwp internal structures
+ * 
+ *  Known contributors to this file:
+ *     Markus Armbruster, 2004-2006
  */
+
 #ifndef LWPINT_H
 #define LWPINT_H
 
 #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
@@ -87,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