[asterisk-bugs] [JIRA] (ASTERISK-23553) Add ast_spinlock capability to lock.h

George Joseph (JIRA) noreply at issues.asterisk.org
Thu Mar 27 15:00:18 CDT 2014


George Joseph created ASTERISK-23553:
----------------------------------------

             Summary: Add ast_spinlock capability to lock.h
                 Key: ASTERISK-23553
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23553
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Core/NewFeature
    Affects Versions: 12.1.1, SVN
            Reporter: George Joseph
            Severity: Minor


Add the following APIs to lock.h

ast_spinlock_init
ast_spinlock_lock
ast_spinlock_trylock
ast_spinlock_unlock

Depending on the capabilities determined by configure, choose from the following implementations in order of preference...  OSX Atomics (for OSX only), GCC Atomics, Pthread Spinlock and as a final fallback.. Pthread Mutex.

Patch pending post to reviewboard.





--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list