INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Threading in drivers

1 week 21 hours ago
Gold Boarder
Gold Boarder
Posts: 209
Karma: 7
Topic Author
Threading in drivers #45454
Is threading using the C++11 threading, atomic and condition_variable includes possible for indi drivers? I can see that pthread is Ok but it seems a lot more complex and I don't feel up to reinventing threading. I can get these includes but will all the various builds also be OK?

This is because the simplest way to implement guiding is to delegate it to a separate thread but I need to be able to update things from the thread and cancel the thread if a new guide command arrives.


Please Log in or Create an account to join the conversation.

1 week 20 hours ago
Gold Boarder
Gold Boarder
Posts: 214
Karma: 5
Threading in drivers #45457
Both are in use, earlier drivers used pthread directly, but for example ASI CCD driver has been updated to use std::thread and atomics etc. now.

Remote observatory running Ubuntu 19.10 x64 with ScopeDome 2M, Skywatcher EQ8 and HEQ5, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, USB_Focus V3, Gemini SnapCap, USB_DewPoint, KomaHub
The following user(s) said Thank You ChrisRowland

Please Log in or Create an account to join the conversation.

Time to create page: 0.429 seconds