version 1.1.2.10, 2011/05/02 23:07:55
|
version 1.3, 2011/08/18 15:08:03
|
Line 259 rpc_srv_unregisterCall(rpc_srv_t * __restrict srv, con
|
Line 259 rpc_srv_unregisterCall(rpc_srv_t * __restrict srv, con
|
func.func_hash = hash_fnv((char*) str, MAXPATHLEN + UCHAR_MAX + 1); |
func.func_hash = hash_fnv((char*) str, MAXPATHLEN + UCHAR_MAX + 1); |
|
|
f = rpc_srv_getCall(srv, func.func_tag, func.func_hash); |
f = rpc_srv_getCall(srv, func.func_tag, func.func_hash); |
if (!f) // not found element for unregister | if (!f) /* not found element for unregister */ |
return 0; |
return 0; |
|
|
pthread_mutex_lock(&srv->srv_mtx); |
pthread_mutex_lock(&srv->srv_mtx); |
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; |
|
|
if (f->func_args && f->func_vals) |
if (f->func_args && f->func_vals) |
Line 411 rpc_srv_unregisterBLOB(rpc_srv_t * __restrict srv, uin
|
Line 411 rpc_srv_unregisterBLOB(rpc_srv_t * __restrict srv, uin
|
} |
} |
|
|
b = rpc_srv_getBLOB(srv, var); |
b = rpc_srv_getBLOB(srv, var); |
if (!b) // not found element for unregister | if (!b) /* not found element for unregister */ |
return 0; |
return 0; |
|
|
pthread_mutex_lock(&srv->srv_blob.mtx); |
pthread_mutex_lock(&srv->srv_blob.mtx); |
if (srv->srv_blob.blobs == b) { // if is 1st element | if (srv->srv_blob.blobs == b) { /* if is 1st element */ |
srv->srv_blob.blobs = srv->srv_blob.blobs->blob_next; |
srv->srv_blob.blobs = srv->srv_blob.blobs->blob_next; |
} else { |
} else { |
for (curr = srv->srv_blob.blobs; curr->blob_next != b; curr = curr->blob_next); |
for (curr = srv->srv_blob.blobs; curr->blob_next != b; curr = curr->blob_next); |