diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2022-09-16 19:23:18 +0530 |
---|---|---|
committer | Mohammed Sadiq <sadiq@sadiqpk.org> | 2022-09-16 19:23:18 +0530 |
commit | cfbbdfbafc39c69a54ab830faa89a2b4c26e7561 (patch) | |
tree | e637b7f6ee10d0819e5b5c86bd139b05dafc3ad9 /json-glib/json-serializable.c | |
parent | ac12297654adf8195b49d20e4c662a01f2b96e5a (diff) | |
download | json-glib-wip/sadiq/parser-read-async.tar.gz |
parser: Don't use thread to read async from streamwip/sadiq/parser-read-async
Some GInputStream may not support reading from a different thread (eg: libsoup3[0]).
So instead of reading the stream in the task thread, use the async read API
of GInputStream. Since read_async is optional (as GLib handles it if not implemented)
This shouldn't be an issue for users.
[0] https://libsoup.org/libsoup-3.0/client-thread-safety.html
Diffstat (limited to 'json-glib/json-serializable.c')
0 files changed, 0 insertions, 0 deletions