--- libaitrpc/src/builtin.c 2011/09/01 11:39:26 1.3.2.4 +++ libaitrpc/src/builtin.c 2011/09/01 14:28:41 1.3.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: builtin.c,v 1.3.2.4 2011/09/01 11:39:26 misho Exp $ +* $Id: builtin.c,v 1.3.2.5 2011/09/01 14:28:41 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -265,7 +265,9 @@ rpcBLOBServerState(rpc_func_t *call, int ic, array_t * if (AIT_TYPE(io_array(iv, 0, ait_val_t*)) != i32) return -1; + pthread_mutex_lock(&srv->srv_mtx); srv->srv_blob.state = AIT_GET_I32(io_array(iv, 0, ait_val_t*)); + pthread_mutex_unlock(&srv->srv_mtx); return 0; }