|
Hi,
William:
Well, the SFL libraries
don't allow to pass instances between threads. Does this means if I
want to use SFL objects in different threads I have to create
CSM_AppLogin object in each thread, then create other objects
?
thanks
Jack Jin
-----Original Message-----
From: William Adams [mailto:william.adams@xxxxxxxxx] Sent: Monday, June 30, 2003 4:38 AM To: 'Jack Jin' Cc: 'imc-sfl' Subject: RE: Question The SFL libraries do not by
default allow you to pass instances between threads. You can compile the
libraries with SM_NO_THREADS defined this will mean there is no thread locking.
Of course it also means the libraries wont be thread safe and you will have to
ensure that your code is thread safe.
Hope this helps.
William Adams -----Original Message-----
From: owner-imc-cml@xxxxxxxxxxxx [mailto:owner-imc-cml@xxxxxxxxxxxx]On Behalf Of Jack Jin Sent: 27 June 2003 20:13 To: imc-cml Subject: Question Hi,
I using SFL v2.1. I got a
problem.
I initilize class CSM_AppLogin
with "sm_free3DLL" library in the main thread . I pass the pointer of
CSM_AppLogin object to another thread created by main thread. In
that thread I try to create CSM_MsgToSign object to sign data, but the thread
blocked. If I use CSM_AppLogin and CSM_MsgToSign in same thread, it didn't
blocked and works fine.
Thanks for the
help.
Jack Jin
Software Developer
Edisoft Inc
|