From 7b76993617c3fe2a9797be2e5d7443f4cdb9b32d Mon Sep 17 00:00:00 2001
From: navid <navid@mycompany.com>
Date: Wed, 24 Jun 2015 14:48:35 +0000
Subject: [PATCH] undo the wait for using msc if msc not initialized

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7655 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 common/utils/msc/msc.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/common/utils/msc/msc.c b/common/utils/msc/msc.c
index f242bd898a..fcdc221a96 100644
--- a/common/utils/msc/msc.c
+++ b/common/utils/msc/msc.c
@@ -150,7 +150,7 @@ int msc_init(const msc_env_t envP, const int max_threadsP)
 
   rv = lfds611_queue_new(&g_msc_message_queue_p, (lfds611_atom_t)MSC_MAX_QUEUE_ELEMENTS);
   AssertFatal (rv, "lfds611_queue_new failed!\n");
-
+  AssertFatal (g_msc_message_queue_p != NULL, "g_msc_message_queue_p is NULL!\n");
   msc_start_use();
 
   for (i=0; i < max_threadsP * 30; i++) {
@@ -350,9 +350,6 @@ int msc_init(const msc_env_t envP, const int max_threadsP)
 void msc_start_use(void)
 //------------------------------------------------------------------------------
 {
-  while (NULL == g_msc_message_queue_p) {
-    pthread_yield();
-  }
   lfds611_queue_use(g_msc_message_queue_p);
   lfds611_stack_use(g_msc_memory_stack_p);
 }
-- 
GitLab