@@ -136,8 +136,8 @@ char *oauth2_cfg_cache_set_options(oauth2_log_t *log, const char *type,
136136 * verify
137137 */
138138
139- typedef void * (oauth2_cfg_ctx_init_cb )(oauth2_log_t * log );
140- typedef void * (oauth2_cfg_ctx_clone_cb )(oauth2_log_t * log , void * src );
139+ typedef void * (oauth2_cfg_ctx_init_cb )(oauth2_log_t * log );
140+ typedef void * (oauth2_cfg_ctx_clone_cb )(oauth2_log_t * log , void * src );
141141typedef void (oauth2_cfg_ctx_free_cb )(oauth2_log_t * log , void * );
142142
143143typedef struct oauth2_cfg_ctx_funcs_t {
@@ -194,7 +194,7 @@ typedef struct oauth2_cfg_token_verify_t {
194194 struct oauth2_cfg_token_verify_t * next ;
195195} oauth2_cfg_token_verify_t ;
196196
197- typedef char * (oauth2_cfg_set_options_cb_t )(oauth2_log_t * log ,
197+ typedef char * (oauth2_cfg_set_options_cb_t )(oauth2_log_t * log ,
198198 const char * value ,
199199 const oauth2_nv_list_t * params ,
200200 void * cfg );
@@ -366,26 +366,25 @@ oauth2_cfg_session_t *_oauth2_cfg_session_obtain(oauth2_log_t *log,
366366 } oauth2_##name##_list_t; \
367367 \
368368 static oauth2_##name##_list_t *_oauth2_##name##_list = NULL; \
369- static oauth2_ipc_mutex_t *_oauth2_##name##_list_mutex = NULL; \
369+ static oauth2_ipc_thread_mutex_t *_oauth2_##name##_list_mutex = NULL; \
370370 \
371371 static bool _M_##name##_list_lock(oauth2_log_t *log) \
372372 { \
373373 bool rc = false; \
374374 if (_oauth2_##name##_list_mutex == NULL) { \
375375 _oauth2_##name##_list_mutex = \
376- oauth2_ipc_mutex_init(log); \
377- oauth2_ipc_mutex_post_config( \
378- log, _oauth2_##name##_list_mutex); \
376+ oauth2_ipc_thread_mutex_init(log); \
379377 } \
380- rc = oauth2_ipc_mutex_lock(log, _oauth2_##name##_list_mutex); \
378+ rc = oauth2_ipc_thread_mutex_lock( \
379+ log, _oauth2_##name##_list_mutex); \
381380 return rc; \
382381 } \
383382 \
384383 static bool _M_##name##_list_unlock(oauth2_log_t *log) \
385384 { \
386385 bool rc = false; \
387- rc = \
388- oauth2_ipc_mutex_unlock( log, _oauth2_##name##_list_mutex); \
386+ rc = oauth2_ipc_thread_mutex_unlock( \
387+ log, _oauth2_##name##_list_mutex); \
389388 return rc; \
390389 } \
391390 \
@@ -473,8 +472,8 @@ oauth2_cfg_session_t *_oauth2_cfg_session_obtain(oauth2_log_t *log,
473472 _M_##name##_list_unlock(log); \
474473 \
475474 if (_oauth2_##name##_list_mutex != NULL) { \
476- oauth2_ipc_mutex_free(log, \
477- _oauth2_##name##_list_mutex); \
475+ oauth2_ipc_thread_mutex_free( \
476+ log, _oauth2_##name##_list_mutex); \
478477 _oauth2_##name##_list_mutex = NULL; \
479478 } \
480479 }
0 commit comments