File: atomic_reference.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 (20 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __ATOMIC_REFERENCE_H__
#define __ATOMIC_REFERENCE_H__

#if defined(__sun)
#include <atomic.h>
#endif

#ifdef HAVE_LIBKERN_OSATOMIC_H
#include <libkern/OSAtomic.h>
#endif

void ir_mark(void*);
VALUE ir_alloc(VALUE);
VALUE ir_initialize(int, VALUE*, VALUE);
VALUE ir_get(VALUE);
VALUE ir_set(VALUE, VALUE);
VALUE ir_get_and_set(VALUE, VALUE);
VALUE ir_compare_and_set(volatile VALUE, VALUE, VALUE);

#endif