I know, that's why I'm using std::vectors for the main computation and that's quite fast, but as soon as I'm converting my datas to be returned by the command in a single threaded loop, it's taking almost as long as if the whole thing wasn't multi threaded....
----------------------------------------------- Ahmidou Lyazidi Director | TD | CG artist http://vimeo.com/ahmidou/videos http://www.cappuccino-films.com 2013/9/26 Matt Lind <[email protected]> > For the record, the Softimage SDK is not thread safe. Only the ICE SDK > can support multithreading.**** > > ** ** > > ** ** > > Matt**** > > ** ** > > ** ** > > ** ** > > ** ** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Ahmidou Lyazidi > *Sent:* Tuesday, September 24, 2013 1:38 AM > *To:* [email protected] > *Subject:* [C++] passing a STD:vector in context.PutAttribute**** > > ** ** > > Hello list people, > I'm working on a C++ command and I'm using openMP to multitrhead the > computation.**** > > As Softimage Arrays don't play nice with openMP I'm stuck with > STD::vectors.**** > > Now I would like that command to output that vector (that is > multidimentional by the way),**** > > so I was wondering if there was a magical wat to cast it in a CValue in a > valid way without**** > > rebuilding the whole thing as CValues Arrays?**** > > Thanks!**** > > > **** > > ----------------------------------------------- > Ahmidou Lyazidi > Director | TD | CG artist > http://vimeo.com/ahmidou/videos > http://www.cappuccino-films.com**** > > -------------------------- > To unsubscribe: mail [email protected] with subject > "unsubscribe" and reply to the confirmation email. >
-------------------------- To unsubscribe: mail [email protected] with subject "unsubscribe" and reply to the confirmation email.

