Diff for /libaitrpc/src/srv.c between versions 1.1.1.1.2.19 and 1.1.1.1.2.21

version 1.1.1.1.2.19, 2010/07/08 08:02:02 version 1.1.1.1.2.21, 2010/07/08 13:05:50
Line 411  rpc_srv_endBLOBServer(rpc_srv_t * __restrict srv) Line 411  rpc_srv_endBLOBServer(rpc_srv_t * __restrict srv)
         }          }
         pthread_mutex_unlock(&srv->srv_blob.mtx);          pthread_mutex_unlock(&srv->srv_blob.mtx);
   
           while (pthread_mutex_trylock(&srv->srv_blob.mtx) == EBUSY);
         pthread_mutex_destroy(&srv->srv_blob.mtx);          pthread_mutex_destroy(&srv->srv_blob.mtx);
 }  }
   
Line 579  rpc_srv_initServer(u_int regProgID, u_int regProcID, i Line 580  rpc_srv_initServer(u_int regProgID, u_int regProcID, i
         } else          } else
                 memset(srv->srv_clients, 0, srv->srv_numcli * sizeof(rpc_cli_t));                  memset(srv->srv_clients, 0, srv->srv_numcli * sizeof(rpc_cli_t));
   
           pthread_mutex_init(&srv->srv_mtx, NULL);
   
         rpc_srv_registerCall(srv, NULL, CALL_SRVSHUTDOWN, 0);          rpc_srv_registerCall(srv, NULL, CALL_SRVSHUTDOWN, 0);
         rpc_srv_registerCall(srv, NULL, CALL_SRVCLIENTS, 0);          rpc_srv_registerCall(srv, NULL, CALL_SRVCLIENTS, 0);
         rpc_srv_registerCall(srv, NULL, CALL_SRVCALLS, 0);          rpc_srv_registerCall(srv, NULL, CALL_SRVCALLS, 0);
         rpc_srv_registerCall(srv, NULL, CALL_SRVSESSIONS, 0);          rpc_srv_registerCall(srv, NULL, CALL_SRVSESSIONS, 0);
   
         pthread_mutex_init(&srv->srv_mtx, NULL);  
         return srv;          return srv;
 }  }
   
Line 625  rpc_srv_endServer(rpc_srv_t * __restrict srv) Line 626  rpc_srv_endServer(rpc_srv_t * __restrict srv)
         }          }
         pthread_mutex_unlock(&srv->srv_mtx);          pthread_mutex_unlock(&srv->srv_mtx);
   
           while (pthread_mutex_trylock(&srv->srv_mtx) == EBUSY);
         pthread_mutex_destroy(&srv->srv_mtx);          pthread_mutex_destroy(&srv->srv_mtx);
   
         free(srv);          free(srv);

Removed from v.1.1.1.1.2.19  
changed lines
  Added in v.1.1.1.1.2.21


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>