Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile fix: rename function changed after merge.
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 1 Feb 2011 12:41:02 +0000 (12:41 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 1 Feb 2011 12:41:02 +0000 (12:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9551 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_smurf.c

index 6b0d817..60a1bb8 100644 (file)
@@ -12,7 +12,7 @@ static xbt_swag_t *req_lists;
 void SIMIX_request_init(void)
 {
   s_smx_req_t req;
-  int i, nthreads = SIMIX_context_get_parallel_threads();
+  int i, nthreads = SIMIX_context_get_nthreads();
 
   req_lists = xbt_new0(xbt_swag_t, nthreads);
   for(i=0; i < nthreads; i++)
@@ -22,7 +22,7 @@ void SIMIX_request_init(void)
 
 void SIMIX_request_destroy(void)
 {
-  int i, nthreads = SIMIX_context_get_parallel_threads();
+  int i, nthreads = SIMIX_context_get_nthreads();
 
   for(i=0; i < nthreads; i++)
     xbt_swag_free(req_lists[i]);
@@ -68,7 +68,7 @@ smx_req_t SIMIX_request_pop(void)
 {
   int i;
   smx_req_t req = NULL;
-  int nthreads = SIMIX_context_get_parallel_threads();
+  int nthreads = SIMIX_context_get_nthreads();
 
   for(i=0; i < nthreads; i++){
     if((req = xbt_swag_extract(req_lists[i]))){