w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
lock

mutex.lock â self Instance Public methods Attempts to grab the lock and waits if it isn't available. Raises ThreadError if mutex was locked by the current thread.

locked?

mutex.locked? â true or false Instance Public methods Returns true if this lock is currently held by some thread.

owned?

mutex.owned? â true or false Instance Public methods Returns true if this lock is currently held by current thread. This API is experimental, and subject to change.

sleep

mutex.sleep(timeout = nil) â number Instance Public methods Releases the lock and sleeps timeout seconds if it is given and non-nil or forever. Raises ThreadError if mutex wasn't locked by the current thread. Note that this method can wakeup without explicit Thread#wakeup call. For example, receiving signal and so on.

synchronize

mutex.synchronize { ... } â result of the block Instance Public methods Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Mutex.

try_lock

mutex.try_lock â true or false Instance Public methods Attempts to obtain the lock and returns immediately. Returns true if the lock was granted.

unlock

mutex.unlock â self Instance Public methods Releases the lock. Raises ThreadError if mutex wasn't locked by the current thread.

mu_lock

mu_lock() Instance Public methods See Mutex#lock

mu_locked?

mu_locked?() Instance Public methods See Mutex#locked?

mu_synchronize

mu_synchronize(&block) Instance Public methods See Mutex#synchronize

Popular Articles
Name-based Virtual Host Name-based Virtual Host Support This document describes when and how to use name-based virtual hosts. Name-based vs. IP-based Virtual Hosts IP-b
docker-compose CLI Environment Variables CLI Environment Variables Several environment variables are available for you to configure the Docker Compose command-line behaviour. Variables start
String Functions and Operators This section describes functions and operators for examining and manipulating string values. Strings in this context include values of the types char
Generalized Linear Models (Formula) Generalized Linear Models (Formula) Link to Notebook GitHub This notebook illustrates how you can use R-style formulas to fit Generalized Linear
eq eq These operators are documented in perlop.


Page 614 of 11844

|< < Prev 611 612 613 614 615 616 617 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions