Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No need to lock on request pop.
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 15:23:50 +0000 (15:23 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 15:23:50 +0000 (15:23 +0000)
Only maestro does it and running alone.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9072 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_smurf.c

index 0b61bea..0dd362a 100644 (file)
@@ -40,15 +40,12 @@ void SIMIX_request_push(smx_req_t req)
 smx_req_t SIMIX_request_pop(void)
 {
   smx_req_t request = NULL;
-  if (_surf_parallel_contexts)
-    xbt_os_mutex_acquire(sync_req_vector);
   while (xbt_dynar_length(req_vector)){
     request = xbt_dynar_pop_as(req_vector, smx_req_t);
     if (request)
       break;
   }
-  if (_surf_parallel_contexts)
-    xbt_os_mutex_release(sync_req_vector);
+
   return request;
 }