Ruby 2.1.5p273(2014-11-13revision48405)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

rubysig.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 rubysig.h -
4
5 $Author: nobu $
6 $Date: 2013-04-05 19:29:38 +0900 (Fri, 05 Apr 2013) $
7 created at: Wed Aug 16 01:15:38 JST 1995
8
9 Copyright (C) 1993-2008 Yukihiro Matsumoto
10
11 **********************************************************************/
12
13 #if defined __GNUC__
14 #warning rubysig.h is obsolete
15 #elif defined _MSC_VER || defined __BORLANDC__
16 #pragma message("warning: rubysig.h is obsolete")
17 #endif
18
19 #ifndef RUBYSIG_H
20 #define RUBYSIG_H
21 #include "ruby/ruby.h"
22
23 #if defined(__cplusplus)
24 extern "C" {
25 #if 0
26 } /* satisfy cc-mode */
27 #endif
28 #endif
29
30 RUBY_SYMBOL_EXPORT_BEGIN
31
32 struct rb_blocking_region_buffer;
33 DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void));
34 DEPRECATED(RUBY_EXTERN void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *));
35 #define TRAP_BEG do {struct rb_blocking_region_buffer *__region = rb_thread_blocking_region_begin();
36 #define TRAP_END rb_thread_blocking_region_end(__region);} while (0)
37 #define RUBY_CRITICAL(statements) do {statements;} while (0)
38 #define DEFER_INTS (0)
39 #define ENABLE_INTS (1)
40 #define ALLOW_INTS do {CHECK_INTS;} while (0)
41 #define CHECK_INTS rb_thread_check_ints()
42
43 RUBY_SYMBOL_EXPORT_END
44
45 #if defined(__cplusplus)
46 #if 0
47 { /* satisfy cc-mode */
48 #endif
49 } /* extern "C" { */
50 #endif
51
52 #endif
rb_thread_blocking_region_begin
struct rb_blocking_region_buffer * rb_thread_blocking_region_begin(void)
Definition: thread.c:1232
ruby.h
rb_thread_blocking_region_end
void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *region)
Definition: thread.c:1241
DEPRECATED
DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void))
rb_blocking_region_buffer
Definition: thread.c:109
RUBY_EXTERN
#define RUBY_EXTERN
Definition: missing.h:67
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:39
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:38