examples/performance-thread: fix return sign
authorIan Betts <ian.betts@intel.com>
Sat, 12 Dec 2015 08:12:08 +0000 (08:12 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 12 Dec 2015 21:32:59 +0000 (22:32 +0100)
commitde186103dacab38c4cb38af6c5665134ec183b37
tree29ab2b3be98b7d56876b8e79073327e1fd4cd880
parent08def3afcb135364d25c71de26ccf0876e1b90fd
examples/performance-thread: fix return sign

The patch fixes an inverted return value in the
cond_destroy and cond_init APIs of the pthread shim
example.

These APIs are now demonstrated in the sample app by
having the mutexes and condition variables
explicitly destroyed before the appplication terminates.

Fixes: 433ba6228f9a77a9b5f4 ("add pthread_shim app")

Signed-off-by: Ian Betts <ian.betts@intel.com>
examples/performance-thread/pthread_shim/main.c
examples/performance-thread/pthread_shim/pthread_shim.c