version 1.6.2.3, 2012/03/14 13:29:11
|
version 1.7.2.1, 2012/03/28 13:37:13
|
Line 166 rpc_srv_unregisterCall(rpc_srv_t * __restrict srv, con
|
Line 166 rpc_srv_unregisterCall(rpc_srv_t * __restrict srv, con
|
if (rpc_calcHashes(&func, csModule, csFunc) == -1) |
if (rpc_calcHashes(&func, csModule, csFunc) == -1) |
return -1; |
return -1; |
|
|
|
pthread_mutex_lock(&srv->srv_mtx); |
f = rpc_srv_getCall(srv, func.func_tag, func.func_hash); |
f = rpc_srv_getCall(srv, func.func_tag, func.func_hash); |
AIT_FREE_VAL(&func.func_name); |
AIT_FREE_VAL(&func.func_name); |
AIT_FREE_VAL(&func.func_file); |
AIT_FREE_VAL(&func.func_file); |
if (!f) /* not found element for unregister */ | if (!f) { /* not found element for unregister */ |
| pthread_mutex_unlock(&srv->srv_mtx); |
return 0; |
return 0; |
|
} |
|
|
pthread_mutex_lock(&srv->srv_mtx); |
|
/* remove from list of functions */ |
/* remove from list of functions */ |
if (srv->srv_funcs == f) /* if is 1st element */ |
if (srv->srv_funcs == f) /* if is 1st element */ |
srv->srv_funcs = srv->srv_funcs->func_next; |
srv->srv_funcs = srv->srv_funcs->func_next; |
Line 362 rpc_calcHashes(rpc_func_t * __restrict func, const cha
|
Line 364 rpc_calcHashes(rpc_func_t * __restrict func, const cha
|
len += strlen(csModule); |
len += strlen(csModule); |
} |
} |
/* align len to 2 */ |
/* align len to 2 */ |
len = (len + 1) & ~1; | len = io_align(len, 1); |
|
|
/* prepare hash source string */ |
/* prepare hash source string */ |
str = malloc(len); |
str = malloc(len); |