[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Question



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
Software Engineer
Nexor
Tel: +44 (0) 115 952 0500
Fax: +44 (0) 115 952 0519
DD: +44 (0) 115 953 5536
Mailto:will.adams@xxxxxxxxx
http://www.nexor.com

Nexor is recognised as an Investor in People and is accredited to ISO 9001/TickIT and IS BS7799. Further details of Nexor's accreditations can be found on our website.


DISCLAIMER: Privileged or confidential information may be contained in this message or within any files transmitted with it. If you are not the intended recipient, kindly destroy the message and notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of Nexor are neither given nor endorsed by it.

-----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