-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add allowParallel flag to allow multiple readers to be created #292
base: master
Are you sure you want to change the base?
Conversation
Thanks Niklas. This library wasn't designed to handle anything parallel/threaded. That's probably why they put that check in there. So I'm reticent to add a "skip this error" flag that would imply that it's supported in any way.... |
Hi Andy,
I think that's totally sensible, but our use case is completely read-only,
and I think in that case it makes sense to opt into multi threading at your
own risk.
…On Thu, Jun 20, 2024, 23:08 Andy Maloney ***@***.***> wrote:
Thanks Niklas.
This library wasn't designed to handle *anything* parallel/threaded.
That's probably why they put that check in there.
So I'm *reticent* to add a "skip this error" flag that would imply that
it's supported in any way....
—
Reply to this email directly, view it on GitHub
<#292 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGLJTZI5XY7AIBMVRATBHLZINAGNAVCNFSM6AAAAABJM2JE5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGU3DKNRTGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Right, in the same way as any other C++ data structure allows, e.g. The way I see it, your library provides a way to prevent parallel access (better than |
After thinking about it a bit, this feels more like a workaround than a proper solution. Some of the code in this library is kinda... old & gnarly. To feel more comfortable with moving in this direction, I'd like to see:
Then with the tests in place:
Then the lib would fully support multiple readers. |
Ouch. We have a backlogged ticket for testing multi-threaded reading and writing of seperate point clouds. |
Handy for multithreaded work, we also use it in an extension of
pye57
:davidcaron/pye57@7d2dd71
CC @chpatrick