gio/gfilemonitor: Use atomic API to get / store cancelled state

The cancelled state may be set and read by different threads, so ensure that it's stored and managed in an atomic way.

We could in fact end up check for g_file_monitor_is_cancelled() in a thread and g_file_monitor_cancel() or g_file_monitor_emit_event in in another one.

Helps with #3356

Edited by Marco Trevisan

Merge request reports

Loading