alarm: make cancellation thread-safe
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Wed, 1 Oct 2014 14:20:22 +0000 (15:20 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 24 Nov 2014 12:17:49 +0000 (13:17 +0100)
commita1a57f3e11cddf6d8f46483fa82b80d20aa6e1d9
tree7d68cc214c4004d9c54f8578c59c8ddcbc078234
parent5bc3c265cbae9485eef5534516ec9a7b1df475ff
alarm: make cancellation thread-safe

It eliminates a race between threads using rte_alarm_cancel() and
rte_alarm_set().

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/common/include/rte_alarm.h
lib/librte_eal/linuxapp/eal/eal_alarm.c