Hi,

Most of Win32-GUI is thread safe, and you should be Ok using UserData as long 
as the var is itself shared.

You will have problems sharing controls and windows between threads, but you 
should be ok with basic types. 

An alternative approach is to use thread safe queues to handle 
communication/data sharing.

Cheers,

Jez.

 




-----Original Message-----
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: "perl-win32-gui-users@lists.sourceforge.net" 
<perl-win32-gui-users@lists.sourceforge.net>
Sent: 28/10/06 20:57
Subject: [perl-win32-gui-users] UserData

Hi,

Is the method UserData() thread safe?

Can it be used for associating some data with a certain window in a thread,
then read that data from another thread?

Thank you.

Teddy


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/




Reply via email to