hujun5
b6693065e7
pthread_once: g_lock may lead deadlock
...
For programs with the dependencies logic in pthread_once callback , using global locks may cause deadlock:
task A
pthread_once()
|
|-> nxrmutex_lock(&g_lock);
-> init_routine(); // callback to wait task B
task B
pthread_once()
|
->nxrmutex_lock(&g_lock); // Deadlock
->init_routine(); // hold resource to wake up task A
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-26 10:13:00 +08:00
..
2023-05-17 10:24:42 +08:00
2023-09-24 03:49:33 +08:00
2023-01-25 14:31:37 +02:00
2023-07-08 10:59:37 -03:00
2023-08-02 22:47:29 -07:00
2023-07-11 23:32:17 +08:00
2023-09-26 00:15:21 +08:00
2023-08-28 11:02:18 +03:00
2023-08-01 23:09:46 -07:00
2023-09-08 00:59:31 +03:00
2023-08-28 11:10:08 -03:00
2023-08-03 03:17:22 -07:00
2023-08-22 00:07:16 +08:00
2023-09-22 00:02:51 +08:00
2023-03-02 09:37:58 +01:00
2023-06-12 08:39:38 +02:00
2023-07-13 10:11:58 +08:00
2023-09-20 09:35:28 -04:00
2023-07-13 10:11:58 +08:00
2023-01-15 12:26:15 -03:00
2023-05-01 12:48:55 +08:00
2023-07-11 23:32:17 +08:00
2023-07-31 05:46:37 -07:00
2023-07-28 20:56:22 -07:00
2023-03-02 09:37:58 +01:00
2023-08-11 19:43:37 +08:00
2023-04-25 19:12:53 +01:00
2023-07-08 15:42:11 +08:00
2023-03-02 09:37:58 +01:00
2023-05-21 09:52:08 -03:00
2023-05-21 09:52:08 -03:00
2023-09-07 23:11:10 +08:00
2023-08-03 03:10:56 -07:00
2023-09-26 10:13:00 +08:00
2023-03-19 14:54:59 -06:00
2023-07-31 07:50:10 -07:00
2023-05-19 02:40:38 +08:00
2023-08-06 11:28:49 +02:00
2023-06-17 08:26:46 +03:00
2023-08-29 09:43:42 +08:00
2023-07-11 23:32:17 +08:00
2023-09-06 15:08:24 +03:00
2023-07-29 07:28:23 -07:00
2023-06-22 20:38:45 +08:00
2023-06-22 20:38:45 +08:00
2023-05-05 18:36:36 +08:00
2023-02-02 10:33:01 +08:00
2023-08-19 09:08:40 +03:00
2023-09-23 15:58:00 +08:00
2023-09-22 08:51:07 +08:00