PAS Advanced Settings and Thread-safe DLL

Posted by Jeff Ledbetter on 26-May-2015 15:52

Hi.

Under a PAS ABL Application instance 'Advanced Settings' folder, there is boolean option for "Thread Safe External Libraries".

Does this need to also be enabled in conjunction with setting the THREAD-SAFE attribute on the external procedure declaration in your code?

TIA.

All Replies

Posted by Matt Gilarde on 27-May-2015 11:33

If you select the "Thread Safe External Libraries" option, the usingThreadSafeExtLib=1 property will be set in openedge.properties. This property overrides all external procedure declarations, treating them as thread-safe even if the code doesn't have the THREAD-SAFE option. This is convenient if all of your external procedures are thread-safe since you won't have to modify the code to mark each as THREAD-SAFE individually. So, no, you don't need to set the THREAD-SAFE option on the external procedure declarations if you enable the "Thread Safe External Libraries" option.

Posted by Jeff Ledbetter on 27-May-2015 12:36

Thank you Matt Gilarde!
 
Jeff Ledbetter
skype: jeff.ledbetter
 
[collapse]
From: Matt Gilarde [mailto:bounce-mattg@community.progress.com]
Sent: Wednesday, May 27, 2015 11:34 AM
To: TU.OE.Deployment@community.progress.com
Subject: RE: [Technical Users - OE Deployment] PAS Advanced Settings and Thread-safe DLL
 
Reply by Matt Gilarde

If you select the "Thread Safe External Libraries" option, the usingThreadSafeExtLib=1 property will be set in openedge.properties. This property overrides all external procedure declarations, treating them as thread-safe even if the code doesn't have the THREAD-SAFE option. This is convenient if all of your external procedures are thread-safe since you won't have to modify the code to mark each as THREAD-SAFE individually. So, no, you don't need to set the THREAD-SAFE option on the external procedure declarations if you enable the "Thread Safe External Libraries" option.

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

This thread is closed