File: atomic_boolean.h

package info (click to toggle)
ruby-concurrent 1.1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 30,284 kB
  • sloc: ruby: 30,875; java: 6,117; ansic: 288; makefile: 9; sh: 6
file content (16 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __ATOMIC_BOOLEAN_H__
#define __ATOMIC_BOOLEAN_H__

#define TRUTHY(value)(value == Qfalse || value == Qnil ? Qfalse : Qtrue)

void atomic_boolean_mark(void*);
VALUE atomic_boolean_allocate(VALUE);
VALUE method_atomic_boolean_initialize(int, VALUE*, VALUE);
VALUE method_atomic_boolean_value(VALUE);
VALUE method_atomic_boolean_value_set(VALUE, VALUE);
VALUE method_atomic_boolean_true_question(VALUE);
VALUE method_atomic_boolean_false_question(VALUE);
VALUE method_atomic_boolean_make_true(VALUE);
VALUE method_atomic_boolean_make_false(VALUE);

#endif