cpp: Use #pragma once instead of #ifndef guards
[ghc.git] / rts / posix / Signals.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 1998-2005
4 *
5 * Signal processing / handling.
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #pragma once
10
11 #ifdef HAVE_SIGNAL_H
12 # include <signal.h>
13 #endif
14
15 #include "Ticker.h"
16
17 #include "BeginPrivate.h"
18
19 bool anyUserHandlers(void);
20
21 #if !defined(THREADED_RTS)
22 extern siginfo_t pending_handler_buf[];
23 extern siginfo_t *next_pending_handler;
24 #define signals_pending() (next_pending_handler != pending_handler_buf)
25 void startSignalHandlers(Capability *cap);
26 #endif
27
28 void install_vtalrm_handler(int sig, TickProc handle_tick);
29
30 void ioManagerStartCap (/* inout */ Capability **cap);
31
32 extern StgInt *signal_handlers;
33
34 #include "EndPrivate.h"