mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gfile: Document usefulness of g_file_dup()
Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/807
This commit is contained in:
parent
40a84b3d1c
commit
6284749487
@ -702,6 +702,11 @@ g_file_get_parse_name (GFile *file)
|
||||
* the actual file or directory represented by the #GFile; see
|
||||
* g_file_copy() if attempting to copy a file.
|
||||
*
|
||||
* g_file_dup() is useful when a second handle is needed to the same underlying
|
||||
* file, for use in a separate thread (#GFile is not thread-safe). For use
|
||||
* within the same thread, use g_object_ref() to increment the existing object’s
|
||||
* reference count.
|
||||
*
|
||||
* This call does no blocking I/O.
|
||||
*
|
||||
* Returns: (transfer full): a new #GFile that is a duplicate
|
||||
|
Loading…
Reference in New Issue
Block a user