static ACL_FIFO *tls_value_list_get(void) { ACL_FIFO *tls_value_list_ptr; tls_value_list_ptr = TlsGetValue(__tls_value_list_key); if (tls_value_list_ptr == NULL) { tls_value_list_ptr = private_fifo_new(); TlsSetValue(__tls_value_list_key, tls_value_list_ptr); } return tls_value_list_ptr; }
void acl_log_fp_set(ACL_VSTREAM *fp, const char *logpre) { const char *myname = "acl_log_fp_set"; ACL_LOG *log; ACL_ITER iter; acl_assert(fp); if (__loggers == NULL) __loggers = private_fifo_new(); acl_foreach(iter, __loggers) { log = (ACL_LOG*) iter.data; if (strcmp(log->path, ACL_VSTREAM_PATH(fp)) == 0) { acl_msg_warn("%s(%d): log %s has been opened.", myname, __LINE__, log->path); return; } }