coin3d / coin

Coin3D core library
BSD 3-Clause "New" or "Revised" License
284 stars 108 forks source link

Alternative to SoDB::doSelect() #183

Open VolkerEnderlein opened 4 years ago

VolkerEnderlein commented 4 years ago

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 commented 4 years ago

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.