Commit 7f13302d authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix templates for timers

parent 597de821
......@@ -12,6 +12,11 @@
@@SET@@ Trigger = TRUE
@@END_IF@@
@@END_TABLE@@
@@-- timer manager does not have taste properties, but the Set/Reset function are needed here
@@IF@@ @_Language_@ = Timer_Manager
@@SET@@ Trigger = TRUE
@@END_IF@@
@@-- check Remote_Function_Names to exclude cyclic interfaces such as the timer Tick
@@IF@@ @_EXIST:Remote_Function_Names_@ and @_Trigger_@ = TRUE
@@IF@@ @_Param_Names'Length_@ = 0 @@-- zero param
void pro_@_Parent_Function_@_@_Name_@(void)
......
......@@ -12,6 +12,10 @@
@@SET@@ Trigger = TRUE
@@END_IF@@
@@END_TABLE@@
@@-- timer manager does not have taste properties, but the Set/Reset function are needed here
@@IF@@ @_Language_@ = Timer_Manager
@@SET@@ Trigger = TRUE
@@END_IF@@
@@MACRO(PARAMETERS)@@
@@IF@@ @_Param_Names'Length_@ = 0
void
......
......@@ -139,6 +139,13 @@ int create_exchange_queue(char* queue_name,
char full_queue_name[MAX_QUEUE_NAME_SIZE]; // To contain the full name of the queue
checkMQsize();
// It is not possible to have a queue of size 0. If this happens something has gone wrong
// when generating the PI_Message structure. We must abort, as it will fail at runtime
if (0 == max_msg_size) {
perror ("create_exchange_queue for was called with zero-size queue size, aborting");
exit(-1);
}
debug_printf(LVL_INFO, "create_exchange_queue: entering (%s)\n", queue_name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment