coin icon indicating copy to clipboard operation
coin copied to clipboard

Alternative to SoDB::doSelect()

Open VolkerEnderlein opened this issue 4 years ago • 1 comments

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?

VolkerEnderlein avatar Nov 07 '19 23:11 VolkerEnderlein

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.

VolkerEnderlein avatar Nov 08 '19 23:11 VolkerEnderlein