Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Changeing to recursive critical sections... (?)
Re: Changeing to recursive critical sections... (?) [message #8452 is a reply to message #8449] Sat, 10 March 2007 21:20 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
As expected, it is also defined on FreeBSD in pthread header:

/*
 * Mutex types (Single UNIX Specification, Version 2, 1997).
 *
 * Note that a mutex attribute with one of the following types:
 *
 *      PTHREAD_MUTEX_NORMAL
 *      PTHREAD_MUTEX_RECURSIVE
 *      MUTEX_TYPE_FAST (deprecated)
 *      MUTEX_TYPE_COUNTING_FAST (deprecated)
 *
 * will deviate from POSIX specified semantics.
 */
enum pthread_mutextype {
        PTHREAD_MUTEX_ERRORCHECK        = 1,    /* Default POSIX mutex */
        PTHREAD_MUTEX_RECURSIVE         = 2,    /* Recursive mutex */
        PTHREAD_MUTEX_NORMAL            = 3,    /* No error checking */
        MUTEX_TYPE_MAX
};

#define PTHREAD_MUTEX_DEFAULT           PTHREAD_MUTEX_ERRORCHECK
#define MUTEX_TYPE_FAST                 PTHREAD_MUTEX_NORMAL
#define MUTEX_TYPE_COUNTING_FAST        PTHREAD_MUTEX_RECURSIVE

Matthias
 
Read Message
Read Message
Previous Topic: New Core preview
Next Topic: pkg-config discussion
Goto Forum:
  


Current Time: Tue Aug 12 22:00:38 CEST 2025

Total time taken to generate the page: 0.06568 seconds