coin
coin copied to clipboard
Alternative to SoDB::doSelect()
Original report by Mark Millard (Bitbucket: mmillardbb, ).
Since SoDB::doSelect() is obsolete, what is the alternative mechanism in Coin to handle synchronous I/O while Coin continues to handle sensor events, rendering, etc?
Original comment by Bastiaan Veelo (Bitbucket: veelo, GitHub: veelo).
According to https://bitbucket.org/Coin3D/coin/commits/35ca6c1bfe89f13ab96808b02b03d94fff8cb19a doSelect() has never worked.
I don’t understand the select() system call. I guess you could do the I/O in a separate thread? Note that if different threads need to access the scene graph, you must use the locking functions from SoDB and configure Coin for multi threading.
Bastiaan.