Multithreading-Style

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
_neo_cortex
Posts: 5
Joined: Thu Dec 29, 2011 9:54 pm

Multithreading-Style

Post by _neo_cortex »

Hi, i like to ask if it makes sense to use two irrlicht devices (NULL-device for loading, saving) and a 2nd for rendering?

can both devices share data?
how would they be made threadsafe?
are they threadsave anyhow?
what pros and cons has IReferenceCounted to std::auto_ptr<> and such?
does anybody use boost (its a so big lib)

thx for sharing infos.

_neo
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Multithreading-Style

Post by mongoose7 »

No, you can't use one device for loading and another for rendering.
Nalin
Posts: 194
Joined: Thu Mar 30, 2006 12:34 am
Location: Lacey, WA, USA
Contact:

Re: Multithreading-Style

Post by Nalin »

_neo_cortex wrote:what pros and cons has IReferenceCounted to std::auto_ptr<> and such?
does anybody use boost (its a so big lib)
Irrlicht made a design decision not to use the STL at all. That is why you will see manual reference counting and things like core::map. Also, keep in mind that auto_ptr is being deprecated in favor of unique_ptr in C++11.

And yes, I use boost. It is a great collection of libraries that you can use. I personally use boost cstdint, boost filesystem, and boost threading.
Post Reply