spinlock: support non-EAL thread
authorCunming Liang <cunming.liang@intel.com>
Tue, 17 Feb 2015 02:08:12 +0000 (10:08 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 19:22:48 +0000 (20:22 +0100)
commitca2e2dab079a98f105c8e73ebaf1a27e246597f8
tree9c4e9d593aa67d87296855dbd962af45a069b3e3
parentfd4a5ce87d043c619b704c5bdaad73eb599e90ca
spinlock: support non-EAL thread

In non-EAL thread, lcore_id always be LCORE_ID_ANY.
It can't be used as unique id for recursive spinlock.
Then use rte_gettid() to replace it.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/include/generic/rte_spinlock.h
lib/librte_eal/common/include/rte_lcore.h