Junjie Hu
4f80102935
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
2015-11-11 04:54:52 +00:00
..
2015-06-01 16:57:33 -07:00
2015-02-14 00:56:46 +08:00
2015-04-16 08:06:03 +00:00
2014-11-19 10:39:05 -08:00
2015-09-25 15:33:20 -07:00
2014-05-13 19:17:46 -07:00
2014-08-15 14:22:07 -07:00
2014-11-06 11:09:03 -08:00
2013-12-03 18:42:41 -08:00
2013-12-03 18:42:41 -08:00
2014-11-06 11:16:55 -08:00
2014-04-18 10:29:16 -07:00
2014-11-07 10:20:32 -08:00
2014-11-03 22:15:08 -08:00
2015-06-09 13:47:46 -07:00
2015-06-01 16:57:33 -07:00
2015-01-26 11:57:11 -08:00
2014-02-06 20:12:21 -08:00
2014-09-11 08:45:46 -07:00
2013-02-01 14:51:19 -08:00
2014-10-06 11:38:01 -07:00
2015-03-05 00:46:18 -08:00
2015-04-17 18:49:12 -04:00
2015-04-01 12:22:40 -07:00
2015-03-17 19:50:55 -04:00
2013-02-11 16:39:10 -08:00
2015-09-25 15:33:20 -07:00
2014-09-23 14:53:10 -07:00
2014-08-28 16:37:09 -07:00
2015-06-10 16:55:50 -07:00
2014-09-08 16:44:48 -07:00
2014-11-04 18:03:44 -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-11-13 15:51:36 -08:00
2015-01-13 17:30:51 -08:00
2015-05-06 16:47:54 -07:00
2015-11-11 04:54:52 +00:00
2014-12-03 15:55:34 -08:00
2014-05-13 11:19:57 -07:00
2014-05-13 11:19:57 -07:00
2014-12-08 21:52:43 -08:00
2014-07-24 15:14:06 -07:00
2014-09-19 17:37:06 -07:00
2015-01-26 20:52:34 -08:00
2014-12-08 21:52:43 -08:00
2014-04-10 20:44:27 -07:00
2015-04-03 19:01:17 -07:00
2015-02-06 18:05:58 -08:00
2014-09-30 10:28:30 -07:00
2014-02-21 16:27:21 +00:00
2015-01-21 10:33:30 -08:00
2015-04-05 10:51:56 -07:00
2014-11-06 14:14:37 -08:00
2014-11-12 19:31:21 -08:00
2015-02-18 22:02:56 -08:00
2014-11-06 15:52:22 -08:00
2014-11-18 19:58:04 -08:00
2014-05-05 19:48:55 -07:00
2014-12-04 11:01:28 -08:00
2015-06-30 18:45:59 -07:00
2015-06-15 18:39:02 -07:00
2015-06-02 14:40:26 -07:00
2014-04-01 17:42:31 -07:00
2014-02-06 20:12:21 -08:00
2014-12-13 18:53:34 -08:00
2015-03-09 18:13:15 -07:00
2015-03-18 15:46:48 -07:00
2013-11-13 13:14:31 -08:00
2014-11-14 16:22:48 -08:00
2014-07-16 15:15:53 -07:00
2014-01-03 14:49:37 -08:00
2015-06-10 18:55:06 -07:00
2015-03-18 15:46:48 -07:00
2015-06-02 10:08:05 -07:00
2014-11-06 11:09:03 -08:00
2014-09-23 18:21:52 -07:00
2015-08-11 18:56:43 +00:00
2014-08-19 11:18:20 -07:00
2014-10-01 16:01:28 -07:00
2015-06-01 13:24:36 -07:00
2015-04-06 19:05:58 -07:00
2014-12-03 15:55:34 -08:00
2015-02-18 22:02:56 -08:00