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;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39485?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie2980705dd0d2d8ed11a6c13349fb85e6f254748
Gerrit-Change-Number: 39485
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>