GeThreadLock()
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2005 at 01:58, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.1
Platform: Windows ; Mac ;
Language(s) : C++ ;---------
Hi,i was wondering what exactly this does ?
Is it allowed to do something like this from within a threaded function ??
StopAllThreads(); GeThreadLock(); UVWTag *tag = FindACertainUVWTag( GetActiveDocument(), some _other_data ); if( tag ) { WriteUVCoordsToTag( tag ); tag->GetObject()->Message( MSG_UPDATE ); EventAdd( EVENT_NOEXPRESSION ); } GeThreadUnLock();
Or is it better to use a CoreMessage and have it sent so a MessagePlugin which does then the updating in the C4d Main Thread ??
Thanks
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/05/2005 at 03:18, xxxxxxxx wrote:
hmm.. i've been told that it's ok to do this.. I think it is not recommeded though.