examples/performance-thread: check thread creation
authorJacek Piasecki <jacekx.piasecki@intel.com>
Thu, 12 Oct 2017 11:44:44 +0000 (13:44 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Oct 2017 23:22:23 +0000 (01:22 +0200)
commit842ee032e41e678568ffbce29172b346dc09c82b
tree1f1dfd55ba2adb787cb582d3efb931872a9e09b9
parentb325a66a4625ffa682d78d61a339e7df08eddcd8
examples/performance-thread: check thread creation

There was a call for thread create function without result check.
Added result check and message printout after failure.

Coverity issue: 143441
Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim app")

Signed-off-by: Jacek Piasecki <jacekx.piasecki@intel.com>
Acked-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
examples/performance-thread/pthread_shim/main.c