/***********************************************************************/
/*                                                                     */
/*                           Objective Caml                            */
/*                                                                     */
/*         Xavier Leroy and Damien Doligez, INRIA Rocquencourt         */
/*                                                                     */
/*  Copyright 1996 Institut National de Recherche en Informatique et   */
/*  en Automatique.  All rights reserved.  This file is distributed    */
/*  under the terms of the GNU Library General Public License, with    */
/*  the special exception on linking described in file ../LICENSE.     */
/*                                                                     */
/***********************************************************************/

/* $Id: signals.h,v 1.1.1.1 2002/01/16 09:01:26 cookcu Exp $ */

#ifndef _signals_
#define _signals_

#include "misc.h"
#include "mlvalues.h"

extern value signal_handlers;
CAMLextern int volatile pending_signal;
CAMLextern int volatile something_to_do;
extern int volatile force_major_slice;
CAMLextern int volatile async_signal_mode;

CAMLextern void enter_blocking_section (void);
CAMLextern void leave_blocking_section (void);
void urge_major_slice (void);
CAMLextern int convert_signal_number (int);
void execute_signal(int signal_number, int in_signal_handler);
void process_event(void);

CAMLextern void (*enter_blocking_section_hook)(void);
CAMLextern void (*leave_blocking_section_hook)(void);
CAMLextern void (* volatile async_action_hook)(void);

#endif /* _signals_ */



syntax highlighted by Code2HTML, v. 0.9.1