mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-10167: Retrofit for ks_list to be intrinsicly thread-safe with an internal reader/writer lock
This commit is contained in:
@@ -185,6 +185,8 @@ extern "C" {
|
||||
/** list object */
|
||||
typedef struct {
|
||||
ks_pool_t *pool;
|
||||
ks_rwl_t *lock;
|
||||
|
||||
struct ks_list_entry_s *head_sentinel;
|
||||
struct ks_list_entry_s *tail_sentinel;
|
||||
struct ks_list_entry_s *mid;
|
||||
@@ -527,7 +529,7 @@ extern "C" {
|
||||
* @see ks_list_attributes_comparator()
|
||||
* @see ks_list_get_at()
|
||||
*/
|
||||
KS_DECLARE(int) ks_list_locate(const ks_list_t *restrict l, const void *data);
|
||||
KS_DECLARE(int) ks_list_locate(const ks_list_t *restrict l, const void *data, ks_bool_t prelocked);
|
||||
|
||||
/**
|
||||
* returns an element given an indicator.
|
||||
|
||||
Reference in New Issue
Block a user