Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix multithreading bug about default_io in iiod-reader #1212

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b9739cc
wip
catkira Nov 5, 2024
557abda
wip with hack that seems to work
catkira Nov 5, 2024
6e790c2
revert hack, it does not work
catkira Nov 5, 2024
611e2d6
wip
catkira Nov 5, 2024
76d551b
wip
catkira Nov 6, 2024
7f4bfcb
remove debug printfs
catkira Nov 6, 2024
6819776
new with with additional mutex
catkira Nov 7, 2024
8bf4c54
wip
catkira Nov 7, 2024
024a251
remove some debug printfs
catkira Nov 7, 2024
9a86449
remove more printfs
catkira Nov 7, 2024
dcaf008
remove more debug printfs
catkira Nov 7, 2024
3292d3a
cleanup
catkira Nov 7, 2024
dfa3e4f
wip
catkira Nov 7, 2024
a53bd61
cleanup
catkira Nov 7, 2024
1957abf
cleanup
catkira Nov 7, 2024
3dbacd2
wip
catkira Nov 7, 2024
dd907cf
wip
catkira Nov 7, 2024
ebafb8b
cleanup
catkira Nov 7, 2024
eea1f38
wip
catkira Nov 7, 2024
e167ea6
use thread pool und thread-id basis
catkira Nov 7, 2024
a8313dd
wip
catkira Nov 7, 2024
e5efbea
wip
catkira Nov 7, 2024
3d007fe
wip
catkira Nov 7, 2024
1d53aff
cleanup
catkira Nov 7, 2024
c6a80df
add iio_curr_thid() for windows
catkira Nov 7, 2024
2860e04
cleanup
catkira Nov 7, 2024
8a723f0
cleanup
catkira Nov 7, 2024
c17724f
free stuff properly
catkira Nov 7, 2024
8bf7b93
cleanup
catkira Nov 7, 2024
9fbbc5f
cleanup
catkira Nov 7, 2024
a66c372
cleanup
catkira Nov 7, 2024
a17c028
cleanup
catkira Nov 7, 2024
630fddd
cleanup
catkira Nov 7, 2024
a04ea0e
cleanup
catkira Nov 7, 2024
d475c67
cleanup
catkira Nov 7, 2024
6b35a65
cleanup
catkira Nov 7, 2024
0ee5b21
make it pre C99 compatible
catkira Nov 7, 2024
0fd7cc5
This fixes a dead-loop that can occur when the same io element is ins…
catkira Nov 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions iiod-responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ int iiod_io_get_response_async(struct iiod_io *io,
for (tmp = priv->readers; tmp->r_next; )
tmp = tmp->r_next;
tmp->r_next = io;
io->r_next = NULL;
}

iio_mutex_unlock(priv->lock);
Expand Down
Loading