From d4250ed6962fe5d7a65ded9a058b2d60301ee22a Mon Sep 17 00:00:00 2001 From: berge Date: Thu, 15 Jul 2010 08:49:51 +0000 Subject: [PATCH] Fixed some issues in Denm --- ttcn/DENM/LibItsDenm_Functions.ttcn | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ttcn/DENM/LibItsDenm_Functions.ttcn b/ttcn/DENM/LibItsDenm_Functions.ttcn index f10e40e1..7f8d5cab 100644 --- a/ttcn/DENM/LibItsDenm_Functions.ttcn +++ b/ttcn/DENM/LibItsDenm_Functions.ttcn @@ -351,14 +351,18 @@ module LibItsDenm_Functions { * @return */ function f_awaitDenMessageOut(in template (present) DenmInd p_rcvMsg, out template (value) DenmInd p_rcvdMsg) runs on ItsFa return FncRetCode { - var FncRetCode v_ret := e_success; + var FncRetCode v_ret := e_timeout; - tc_wait.start; + tc_ac.start; alt { [] denmPort.receive(p_rcvMsg) -> value p_rcvdMsg { - tc_wait.stop; + tc_ac.stop; v_ret := e_success; } + [] tc_ac.timeout { + log("Timeout while awaiting the reception of a message"); + v_ret := e_timeout; + } } return v_ret; -- GitLab