fiber-mon 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/fiber_mon.c +27 -0
- metadata +4 -4
data/fiber_mon.c
CHANGED
@@ -49,10 +49,19 @@ fibermon_memsize(const void *ptr)
|
|
49
49
|
return ptr ? sizeof(fibermon_t) : 0;
|
50
50
|
}
|
51
51
|
|
52
|
+
#ifdef HAVE_RB_DATA_TYPE_T_FUNCTION
|
52
53
|
static const rb_data_type_t fibermon_data_type = {
|
53
54
|
"fibermon",
|
54
55
|
{fibermon_mark, fibermon_free, fibermon_memsize,},
|
55
56
|
};
|
57
|
+
#else
|
58
|
+
static const rb_data_type_t fibermon_data_type = {
|
59
|
+
"fibermon",
|
60
|
+
fibermon_mark,
|
61
|
+
fibermon_free,
|
62
|
+
fibermon_memsize,
|
63
|
+
};
|
64
|
+
#endif
|
56
65
|
|
57
66
|
static VALUE
|
58
67
|
fibermon_alloc(VALUE klass)
|
@@ -320,10 +329,19 @@ fibermon_monitor_memsize(const void *ptr)
|
|
320
329
|
return ptr ? sizeof(fibermon_monitor_t) : 0;
|
321
330
|
}
|
322
331
|
|
332
|
+
#ifdef HAVE_RB_DATA_TYPE_T_FUNCTION
|
323
333
|
static const rb_data_type_t fibermon_monitor_data_type = {
|
324
334
|
"fibermon_monitor",
|
325
335
|
{fibermon_monitor_mark, fibermon_monitor_free, fibermon_monitor_memsize,},
|
326
336
|
};
|
337
|
+
#else
|
338
|
+
static const rb_data_type_t fibermon_monitor_data_type = {
|
339
|
+
"fibermon_monitor",
|
340
|
+
fibermon_monitor_mark,
|
341
|
+
fibermon_monitor_free,
|
342
|
+
fibermon_monitor_memsize,
|
343
|
+
};
|
344
|
+
#endif
|
327
345
|
|
328
346
|
static VALUE
|
329
347
|
fibermon_monitor_alloc(VALUE klass)
|
@@ -524,10 +542,19 @@ fibermon_cond_memsize(const void *ptr)
|
|
524
542
|
return ptr ? sizeof(fibermon_cond_t) : 0;
|
525
543
|
}
|
526
544
|
|
545
|
+
#ifdef HAVE_RB_DATA_TYPE_T_FUNCTION
|
527
546
|
static const rb_data_type_t fibermon_cond_data_type = {
|
528
547
|
"fibermon_cond",
|
529
548
|
{fibermon_cond_mark, fibermon_cond_free, fibermon_cond_memsize,},
|
530
549
|
};
|
550
|
+
#else
|
551
|
+
static const rb_data_type_t fibermon_cond_data_type = {
|
552
|
+
"fibermon_cond",
|
553
|
+
fibermon_cond_mark,
|
554
|
+
fibermon_cond_free,
|
555
|
+
fibermon_cond_memsize,
|
556
|
+
};
|
557
|
+
#endif
|
531
558
|
|
532
559
|
static VALUE
|
533
560
|
fibermon_cond_alloc(VALUE klass)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fiber-mon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Keiju.Ishitsuka
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-19 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|