SILENT KILLERPanel

Current Path: > > opt > alt > ruby25 > include > > ruby-2.5.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/ruby25/include//ruby-2.5.0/ruby

NameTypeSizeLast ModifiedActions
backward Directory - -
backward.h File 2064 bytes April 05 2021 11:46:35.
debug.h File 4288 bytes April 05 2021 11:46:35.
defines.h File 8330 bytes April 05 2021 11:46:35.
digest.h File 1366 bytes July 26 2023 14:55:49.
encoding.h File 18046 bytes April 05 2021 11:46:35.
intern.h File 35120 bytes April 05 2021 11:46:35.
io.h File 5017 bytes April 05 2021 11:46:35.
missing.h File 5259 bytes April 05 2021 11:46:35.
onigmo.h File 44557 bytes April 05 2021 11:46:35.
oniguruma.h File 262 bytes April 05 2021 11:46:35.
re.h File 1472 bytes April 05 2021 11:46:35.
regex.h File 784 bytes April 05 2021 11:46:35.
ruby.h File 80828 bytes April 05 2021 11:46:35.
st.h File 5526 bytes April 05 2021 11:46:35.
subst.h File 374 bytes April 05 2021 11:46:35.
thread.h File 996 bytes April 05 2021 11:46:35.
thread_native.h File 1333 bytes April 05 2021 11:46:35.
util.h File 1895 bytes April 05 2021 11:46:35.
version.h File 1860 bytes April 05 2021 11:46:35.
vm.h File 1684 bytes April 05 2021 11:46:35.

Reading File: //opt/alt/ruby25/include//ruby-2.5.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