Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Is C99 the final C?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="breitkreutz_travis_o, post: 1692513"] The standard provides for atomic access through use of the type sig_atomic_t in signal.h, which is "the (possibly volatile-qualified) integer type of an object that can be accessed as an atomic entity, even in the presence of asynchronous interrupts." (ISO/IEC 9899:1999, clause 7.14, p. 245.) However, the standard also states that "[w]hat constitutes an access to an object that has volatile-qualified type is implementation-defined." (Ibid., clause 6.7.3, p. 109.) Read access on such an object is usually straightforward and is normally done in one atomic operation if the memory is on-chip. Write access, however, may or may not be done in one operation. In either case, access is hardware- specific. In short, there is no portable means of providing a mutex, at least not one that is completely reliable across all platforms. Regards, Travis [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Is C99 the final C?
Top