mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 18:10:08 +01:00
core/trivial: add comment about GMainContext to nm_shutdown_wait_obj_register_full()
This commit is contained in:
parent
79d9441567
commit
b8ae2dfa70
1 changed files with 6 additions and 0 deletions
|
|
@ -1051,6 +1051,12 @@ nm_shutdown_wait_obj_register_full(gpointer watched_obj,
|
|||
if (G_UNLIKELY(!_shutdown_waitobj_lst_head.next))
|
||||
c_list_init(&_shutdown_waitobj_lst_head);
|
||||
|
||||
/* Beware: there are callers with g_main_context_get_thread_default()
|
||||
* not being g_main_context_get_default(). For example _fw_nft_call().
|
||||
*
|
||||
* If you schedule any sources or async operations, you probably need to
|
||||
* make sure to use the default context. */
|
||||
|
||||
handle = g_slice_new(NMShutdownWaitObjHandle);
|
||||
*handle = (NMShutdownWaitObjHandle){
|
||||
/* depending on @free_msg_reason, we take ownership of @msg_reason.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue