Marco Trevisan (Treviño)
cdda03a690
GCancellable: Ensure it is always cancelled on connect callback
...
When a cancellable is cancelled when we call g_cancellable_connect we
used to immediately call the provided callback, while this is fine we
actually had race in case the cancellable was about to be reset or in
the middle of a cancellation.
In fact it could happen that when we released the mutex, another thread
could reset the cancellable just before the callback is actually called
and so leading to call it with g_cancellable_cancelled() == FALSE.
So to handle this, make disconnect and reset function to wait for
connection emission to finish, not to break their assumptions.
This can be tested using some "brute-force" tests where multiple threads
are racing to connect and disconnect while others are cancelling and
resetting a cancellable, ensuring that all works as we expect.
2022-12-15 19:30:43 +01:00
..
2022-01-07 11:27:56 -06:00
2021-01-09 15:39:09 +01:00
2022-10-31 14:08:31 +01:00
2022-10-13 20:53:56 -04:00
2022-09-20 11:30:02 -04:00
2020-11-15 17:34:27 +01:00
2019-03-12 21:53:43 +03:00
2019-02-20 10:38:29 +00:00
2022-12-09 10:45:21 +00:00
2022-09-13 02:44:25 +02:00
2022-12-12 15:58:13 +01:00
2020-06-10 09:48:02 +01:00
2019-06-28 13:05:07 +01:00
2022-11-01 01:56:10 +01:00
2022-12-09 10:45:21 +00:00
2022-03-18 00:16:14 +04:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2019-02-13 08:49:42 +00:00
2021-04-29 12:40:05 +02:00
2022-11-02 12:34:19 +00:00
2022-12-15 19:30:43 +01:00
2022-11-08 13:08:53 -05:00
2022-11-07 11:30:32 +00:00
2022-12-13 14:07:58 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-06-01 12:44:23 +01:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-09-02 19:48:36 +02:00
2022-05-18 09:20:07 +01:00
2022-06-21 12:50:31 +01:00
2022-09-21 11:19:31 +01:00
2022-12-12 15:58:13 +01:00
2021-05-13 20:16:46 +00:00
2020-11-14 19:03:18 +00:00
2022-06-22 20:07:25 +02:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-12-09 10:45:21 +00:00
2022-12-08 05:21:19 +01:00
2022-11-07 13:21:28 +00:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2021-05-13 20:16:46 +00:00
2021-05-13 20:16:46 +00:00
2022-12-14 09:33:18 +00:00
2022-06-23 10:47:13 +01:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2021-05-13 20:16:46 +00:00
2022-11-23 11:15:20 +00:00
2021-04-15 10:19:29 +02:00
2020-10-01 16:32:50 +01:00
2021-05-13 20:16:46 +00:00
2021-05-13 20:16:46 +00:00
2022-04-04 17:39:59 +01:00
2021-04-23 10:43:05 +02:00
2021-04-23 10:43:05 +02:00
2021-05-13 20:16:46 +00:00
2021-05-13 20:16:46 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-05-18 09:20:07 +01:00
2022-11-23 11:15:20 +00:00
2022-06-23 10:47:13 +01:00
2022-11-23 11:15:20 +00:00
2022-05-18 09:20:07 +01:00
2022-09-02 21:21:34 +02:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-07-18 19:39:41 +01:00
2022-11-23 11:15:20 +00:00
2022-11-10 14:25:47 +00:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2022-11-23 11:15:20 +00:00
2022-11-23 11:15:20 +00:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2021-04-15 10:19:29 +02:00
2022-11-23 11:15:20 +00:00
2020-11-17 15:50:07 +00:00
2022-06-28 11:19:21 +01:00
2021-11-17 14:40:38 +01:00
2022-11-07 11:30:32 +00:00
2022-08-09 13:18:47 -05:00
2022-12-14 15:42:14 +00:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2022-07-25 22:30:22 +01:00
2022-06-23 10:47:13 +01:00
2022-06-23 10:47:13 +01:00
2022-05-18 09:20:07 +01:00
2021-12-14 13:47:31 -06:00
2022-11-18 16:34:06 +00:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2021-05-13 20:16:46 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2020-06-12 15:01:08 +01:00
2022-10-27 14:50:48 +01:00
2022-11-02 12:34:19 +00:00
2021-09-06 14:46:15 +02:00
2021-09-06 14:46:15 +02:00
2022-05-18 09:20:07 +01:00
2022-11-02 12:34:19 +00:00
2022-07-15 22:07:03 +02:00
2022-12-13 13:01:09 +00:00
2021-04-15 10:19:29 +02:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2022-05-18 09:20:07 +01:00
2022-02-22 11:25:21 +00:00
2022-06-01 12:44:23 +01:00
2022-05-18 09:20:07 +01:00
2022-07-15 22:07:03 +02:00
2021-06-04 12:09:24 +00:00
2019-12-17 20:59:22 +08:00
2022-11-02 12:34:19 +00:00
2022-06-07 19:12:46 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2022-11-24 20:03:39 +01:00
2021-08-13 01:32:31 +02:00
2021-09-06 18:57:06 +01:00
2022-05-18 09:20:07 +01:00
2022-11-01 13:40:35 -05:00
2022-05-18 09:20:07 +01:00
2021-04-29 12:40:05 +02:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-10-13 20:53:56 -04:00
2022-11-07 11:30:32 +00:00
2022-11-24 20:03:39 +01:00
2021-05-13 20:16:46 +00:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-06-07 11:04:25 +01:00
2021-04-23 10:43:05 +02:00
2022-05-18 09:20:07 +01:00
2022-04-01 15:10:50 +02:00
2022-05-18 09:20:07 +01:00
2022-06-21 12:50:31 +01:00
2022-11-02 12:34:19 +00:00
2022-06-01 12:44:23 +01:00
2022-05-18 09:20:07 +01:00
2020-11-17 15:50:07 +00:00
2022-11-10 14:25:47 +00:00
2020-06-12 15:01:08 +01:00
2019-09-02 20:47:20 +01:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2020-11-14 19:03:18 +00:00
2022-05-31 12:24:13 +01:00
2022-11-02 12:34:19 +00:00
2022-06-23 10:47:13 +01:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-05-18 09:20:07 +01:00
2022-06-01 12:44:23 +01:00
2022-05-17 17:34:06 +02:00
2022-05-18 09:20:07 +01:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00
2020-06-10 09:48:02 +01:00
2022-11-02 12:34:19 +00:00
2022-11-02 12:34:19 +00:00