pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39485?usp=email )
Change subject: Mutex: Allow creating component alive ......................................................................
Mutex: Allow creating component alive
Change-Id: Ie2980705dd0d2d8ed11a6c13349fb85e6f254748 --- M library/Mutex.ttcn 1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/85/39485/1
diff --git a/library/Mutex.ttcn b/library/Mutex.ttcn index 625090b..de74b2d 100644 --- a/library/Mutex.ttcn +++ b/library/Mutex.ttcn @@ -63,11 +63,15 @@ }
/* used by the MTC to start the mutex dispatcher */ -function f_MutexDisp_start() +function f_MutexDisp_start(boolean create_alive := false) return MutexDispCT { var MutexDispCT vc_disp;
- vc_disp := MutexDispCT.create("MutexDispCT-" & testcasename()); + if (create_alive) { + vc_disp := MutexDispCT.create("MutexDispCT-" & testcasename()) alive; + } else { + vc_disp := MutexDispCT.create("MutexDispCT-" & testcasename()); + } vc_disp.start(f_MutexDisp_main());
return vc_disp;