Files
bionic/tests
Junjie Hu de1246202a Fix potential race condition on CTS TC pthread_gettid_np
Root cause:
If start_routine thread exits before pthread_gettid_np is invokded, the "tid" field
will be cleared so that pthread_gettid_np will get "0" (which is cleared by kernel, 
due to the flag "CLONE_CHILD_CLEARTID" is set while calling clone system call inside
pthread_create).

Proposed patch:
Use a mutex to guarantee pthread_gettid_np will be invoked and returned before the
start_routine exits

Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>

Change-Id: I22411f1b0f7446d76a0373cef4ccec858fac7018
(cherry picked from commit 4f80102935)
2015-11-11 21:21:21 +00:00
..
2015-02-14 00:56:46 +08:00
2015-06-16 13:57:54 -07:00
2015-11-04 14:19:55 -08:00
2015-10-09 17:36:05 -07:00
2013-12-03 18:42:41 -08:00
2014-11-06 11:16:55 -08:00
2015-01-26 11:57:11 -08:00
2014-09-11 08:45:46 -07:00
2013-02-01 14:51:19 -08:00
2015-11-09 16:04:50 -08:00
2014-08-22 10:23:12 -07:00
2015-02-14 00:56:46 +08:00
2015-02-14 00:56:46 +08:00
2014-12-03 15:55:34 -08:00
2014-04-10 20:44:27 -07:00
2014-02-21 16:27:21 +00:00
2015-01-21 10:33:30 -08:00
2014-11-06 14:14:37 -08:00
2015-11-06 13:14:43 -08:00
2015-06-15 18:39:02 -07:00
2015-10-28 20:04:59 -07:00
2014-01-03 14:49:37 -08:00
2015-08-26 14:48:55 -07:00
2015-10-02 18:25:19 -07:00
2015-09-22 16:40:14 -07:00
2015-10-26 19:29:12 -07:00