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
Edit
In Place Editing Advanced Editing
  • References
  • C, C++
  • C
  • Thread support

mtx_plain

Defined in header <threads.h>
enum {
    mtx_plain = /* unspecified */,
    mtx_recursive = /* unspecified */,
    mtx_timed = /* unspecified */
};
(since C11)

When passed to mtx_init, identifies the type of a mutex to create.

Constant Explanation
mtx_plain plain mutex
mtx_recursive recursive mutex
mtx_timed timed mutex

References

  • C11 standard (ISO/IEC 9899:2011):
    • 7.26.1/5 mtx_plain, mtx_recursive, mtx_timed (p: 377)

See also

mtx_init
(C11)
creates a mutex
(function)
Links:
  • http://en.cppreference.com/w/c/thread/mtx_types
doc_C_Language
doc_C_Language
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.

Popular Articles
mtx_init Defined in header <threads.h> int mtx_init( mtx_t* mutex, int type ); (since C11) Creates a new mutex object with type. The obje
mtx_lock Defined in header <threads.h> int mtx_lock( mtx_t* mutex ); (since C11) Blocks the current thread until the mutex pointed to by
plain_html plain_html() Instance Public methods The section's title, or 'Top Section' if the title is nil. This is used by the table of contents te
Mailer::plain() void plain(string $view, array $data, mixed $callback) Send a new message when only a plain part. Parameters string $view array $d
mtx_unlock Defined in header <threads.h> int mtx_unlock( mtx_t *mutex ); (since C11) Unlocks the mutex pointed to by mutex. The behavior is


Return to View
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions