risoflora / brookframework

Microframework which helps to develop web Pascal applications.
https://risoflora.github.io/brookframework
GNU Lesser General Public License v2.1
239 stars 54 forks source link

Requesting a way to easy disable the global locker for threaded applications #27

Closed Al-Muhandis closed 3 years ago

Al-Muhandis commented 3 years ago

About this commit (https://github.com/risoflora/brookframework/commit/c2189d62f981c51c02a1494a98a060abb8fbbf13) . My threaded web server (it has the code

... ... ...
{$DEFINE THREADED}

uses
{$IF DEFINED(UNIX) AND DEFINED(THREADED)}
  CThreads,
{$ENDIF}
... ... ... ... ...
begin
  {$IFDEF THREADED}
  Application.Server.Threaded := True;
  {$ENDIF}   
... ... ...

) stop being threaded after the commit (Made the server thread safe.).

(this is the brook4freepascal via brookframework app)

Is there a way to easy disable the global locker for threaded applications