Sha256: dd12aae12d1283765a170c0c433603c51f26628a4a699b658c9f6f9592ee5ab9
Contents?: true
Size: 663 Bytes
Versions: 4
Compression:
Stored size: 663 Bytes
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /* * thread_util.h - part of ruby-oci8 * * Copyright (C) 2011 KUBO Takehiro <kubo@jiubao.org> */ #ifdef USE_THREAD_LOCAL_ERRHP /* * Prepare to execute thread-related functions. */ void Init_oci8_thread_util(void); /* * Run the func in a new native thread. * Don't call any ruby functions in the func. * The return value is errno. */ int oci8_run_native_thread(rb_blocking_function_t func, void *arg); #else /* * For ruby 1.8 configured without --enable-pthread on Unix. */ #define Init_oci8_thread_util() do {} while (0) #define oci8_run_native_thread(func, arg) ((func)(arg), 0) #endif
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
ruby-oci8-2.1.2 | ext/oci8/thread_util.h |
ruby-oci8-2.1.1 | ext/oci8/thread_util.h |
ruby-oci8-2.1.0 | ext/oci8/thread_util.h |
ruby-oci8-master-2.0.7 | ext/oci8/thread_util.h |