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

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


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Joseph updated ASTERISK-23553:
-------------------------------------

    Reviewboard Link: https://reviewboard.asterisk.org/r/3405/

> 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: SVN, 12.1.1
>            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