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
SmartMenus jQuery - jQuery menu plugin that supports widest possible variety of browsers SmartMenus jQuery is a completely new open-source script designed and developed from scratch. It's main goal was to create a script that supports equa
User-defined functions Examples: Pseudo code to demonstrate function uses A function may be defined using syntax such as the following: <?ph
CI_DB_query_builder class CI_DB_query_builder reset_query() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Resets the cur
Server Configuration: Preset Options The following "parameters" are read-only, and are determined when PostgreSQL is compiled or when it is installed. As such, they have been excluded fr
OLSResults.compare_lr_test() statsmodels.regression.linear_model.OLSResults.compare_lr_test OLSResults.compare_lr_test(restricted, large_sample=False) Likelihood ratio test to


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