search for: avl_tree_unlock

Displaying 8 results from an estimated 8 matches for "avl_tree_unlock".

2004 Aug 06
2
ICECAST enseirb group
...x_interval > interval) > > { > > thread_sleep(1000000 * (max_interval - interval)); > > } > > else > > ... > > > > ---------------------------------------- > > > > In fserv_thread_function() function in fserve.c file, can > > avl_tree_unlock(client_tree); be made just after client_node = > > avl_get_first(client_tree); instead of being done at the end or in the > > if(!client_node) { .... } block ? Are we wrong ? If yes, why ? > > > > ---------------------------------------- > > > > In fserv_thread_f...
2004 Aug 06
2
fallback source give up and returns to original source
On Sat, 2004-01-17 at 19:31, iceuse@kezako.net wrote: > Thanks, > Karl, do you plan to integrate this in your icecast-kh release? The idea is to put the the changes I've done into CVS. That way you get the best of both worlds, there's nothing conflicting AFAIK. karl. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage:
2004 Aug 06
0
fallback source give up and returns to original source
...ng or not the main source before moving the clients : if(source->fallback_override && source->fallback_mount) { /* get fallback source */ avl_tree_rlock (global.source_tree); source_t *fallback_source = source_find_mount (source->fallback_mount); avl_tree_unlock (global.source_tree); if (fallback_source) { INFO2 ("passing %d listeners to %s", fallback_source->mount,source->listeners ); /* Do we need to lock the current source? */ thread_mutex_lock (&fallback_source->lock); so...
2004 Aug 06
4
No Duplicate Users - Patch
...de; + + avl_tree_rlock(source->client_tree); + + client_node = avl_get_first(source->client_tree); + while(client_node) { + client = (client_t *)client_node->key; + if (client->username) { + if (!strcmp(client->username, username)) { + avl_tree_unlock(source->client_tree); + return 1; + } + } + client_node = avl_get_next(client_node); + } + + avl_tree_unlock(source->client_tree); + return 0; + +} + auth_result auth_check_client(source_t *source, client_t *client) { auth_t *authenti...
2004 Aug 06
2
improved error.log output --diff
...in " - "request (command: %s)", command_string); + "request (command: %s), %s", command_string, client->con->ip); client_send_401(client); return; } @@ -264,14 +264,14 @@ avl_tree_unlock(global.source_tree); if(source == NULL) { - WARN2("Admin command %s on non-existent source %s", - command_string, mount); + WARN2("Admin command %s on non-existent source %s, %s", + command_string, mount, c...
2004 Aug 06
0
icecast2 on solaris ... (fwd)
...152: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1155: parse error before `*' avl.c: In function `avl_tree_wlock': avl.c:1157: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1160: parse error before `*' avl.c: In function `avl_tree_unlock': avl.c:1162: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1165: parse error before `*' avl.c: In function `avl_node_rlock': avl.c:1167: `node' undeclared (first use in this function) avl.c: At top level: avl.c:1170: parse error before `*' avl.c:...
2004 Aug 06
2
My turn to have issues with compiling libshout
...ared (first use in this function) avl.c: At top level: avl.c:1159: syntax error before '*' token avl.c: In function `avl_tree_wlock': avl.c:1161: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1164: syntax error before '*' token avl.c: In function `avl_tree_unlock': avl.c:1166: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1169: syntax error before '*' token avl.c: In function `avl_node_rlock': avl.c:1171: `node' undeclared (first use in this function) avl.c: At top level: avl.c:1174: syntax error before ...
2004 Aug 06
1
Compile errors
...152: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1155: parse error before `*' avl.c: In function `avl_tree_wlock': avl.c:1157: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1160: parse error before `*' avl.c: In function `avl_tree_unlock': avl.c:1162: `tree' undeclared (first use in this function) avl.c: At top level: avl.c:1165: parse error before `*' avl.c: In function `avl_node_rlock': avl.c:1167: `node' undeclared (first use in this function) avl.c: At top level: avl.c:1170: parse error before `*' avl.c:...