From cb7dbad086092a620c22c8e661bebe6b8fa322fc Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 5 Oct 2006 07:48:15 +0000 Subject: [PATCH] minor change, risk that simulation stalls if busywait counter is set to negative --- tools/cooja/config/code_main_template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/config/code_main_template b/tools/cooja/config/code_main_template index d1680265d..891e75530 100644 --- a/tools/cooja/config/code_main_template +++ b/tools/cooja/config/code_main_template @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: code_main_template,v 1.5 2006/10/02 15:07:33 fros4943 Exp $ + * $Id: code_main_template,v 1.6 2006/10/05 07:48:15 fros4943 Exp $ */ /** @@ -117,7 +117,7 @@ start_process_run_loop(void *data) simProcessRunValue = 1; // Busy-wait while receiving - while (busyWaitNext) { + while (busyWaitNext > 0) { busyWaitNext--; cooja_mt_yield(); }