SILENT KILLERPanel

Current Path: > > opt > alt > ruby22 > include > > ruby-2.2.0 > ruby


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/ruby22/include//ruby-2.2.0/ruby

NameTypeSizeLast ModifiedActions
backward Directory - -
debug.h File 4232 bytes October 09 2013 00:21:51.
defines.h File 5695 bytes September 04 2014 11:09:32.
digest.h File 881 bytes July 26 2023 14:31:54.
encoding.h File 14484 bytes September 19 2014 05:53:00.
intern.h File 35557 bytes July 06 2016 14:11:20.
io.h File 5047 bytes November 18 2014 09:10:59.
missing.h File 4824 bytes June 10 2016 07:09:00.
oniguruma.h File 37869 bytes September 15 2014 16:18:41.
re.h File 1472 bytes December 01 2014 21:30:58.
regex.h File 784 bytes April 05 2013 10:29:38.
ruby.h File 58842 bytes July 26 2023 14:29:02.
st.h File 5346 bytes July 06 2014 15:11:53.
subst.h File 374 bytes December 05 2011 05:29:31.
thread.h File 996 bytes April 05 2013 10:29:38.
thread_native.h File 1333 bytes May 14 2014 10:55:38.
util.h File 2227 bytes February 08 2014 12:50:28.
version.h File 1866 bytes March 08 2016 19:02:43.
vm.h File 1684 bytes April 05 2013 10:29:38.

Reading File: //opt/alt/ruby22/include//ruby-2.2.0/ruby/thread_native.h

/**********************************************************************

  thread_native.h -

  $Author: ko1 $
  created at: Wed May 14 19:37:31 2014

  Copyright (C) 2014 Yukihiro Matsumoto

**********************************************************************/

#ifndef RUBY_THREAD_NATIVE_H
#define RUBY_THREAD_NATIVE_H 1

/*
 * This file contains wrapper APIs for native thread primitives
 * which Ruby interpreter uses.
 *
 * Now, we only suppors pthread and Windows threads.
 *
 * If you want to use Ruby's Mutex and so on to synchronize Ruby Threads,
 * please use Mutex directly.
 */


#if defined(_WIN32)
#include <windows.h>
typedef HANDLE rb_nativethread_id_t;

typedef union rb_thread_lock_union {
    HANDLE mutex;
    CRITICAL_SECTION crit;
} rb_nativethread_lock_t;

#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
typedef pthread_t rb_nativethread_id_t;
typedef pthread_mutex_t rb_nativethread_lock_t;

#else
#error "unsupported thread type"

#endif

RUBY_SYMBOL_EXPORT_BEGIN

rb_nativethread_id_t rb_nativethread_self();

void rb_nativethread_lock_initialize(rb_nativethread_lock_t *lock);
void rb_nativethread_lock_destroy(rb_nativethread_lock_t *lock);
void rb_nativethread_lock_lock(rb_nativethread_lock_t *lock);
void rb_nativethread_lock_unlock(rb_nativethread_lock_t *lock);

RUBY_SYMBOL_EXPORT_END

#endif

SILENT KILLER Tool