Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Updates to VNET. Most importantly, better yielding in the transmit kick threads and...
[palacios.git] / palacios / src / vnet / vnet_host.c
index c5d366a..b537e2a 100644 (file)
 
 struct vnet_host_hooks * host_hooks;
 
-int vnet_lock_init(vnet_lock_t * lock) {
-    if((host_hooks) && host_hooks->mutex_alloc){
-       *lock = (addr_t)(host_hooks->mutex_alloc());
-       
-       if (*lock) {
-           return 0;
-       }
-    }
-
-    return -1;
-}
-
-
 struct vnet_thread * vnet_start_thread(int (*func)(void *), void *arg, char * name){
     if((host_hooks) && host_hooks->thread_start){
        struct vnet_thread * thread = Vnet_Malloc(sizeof(struct vnet_thread));
@@ -50,7 +37,6 @@ struct vnet_thread * vnet_start_thread(int (*func)(void *), void *arg, char * na
 }
 
 
-
 struct vnet_timer * vnet_create_timer(unsigned long interval, 
                                      void (* timer_fun)(void * priv_data), 
                                      void * priv_data){
@@ -71,7 +57,7 @@ void init_vnet(struct vnet_host_hooks * hooks){
 
 
 void deinit_vnet(){
-    host_hooks = NULL;
     v3_deinit_vnet();
+    //    host_hooks = NULL;
 }