synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

Exported package threadvar CurrentThreadName #241

Closed hafedh-trimeche closed 4 months ago

hafedh-trimeche commented 4 months ago

Hi,

Would CurrentThreadName be placed inside implementation section and called using a function?

The compiler reported this worning:

[dcc32 Warning] Controller.dpk(79): W1032 Exported package threadvar 'mormot.core.os.CurrentThreadName' cannot be used outside of this package

https://docwiki.embarcadero.com/RADStudio/Alexandria/en/W1032_Exported_packagethreadvar%27%25s.%25s%27_cannot_be_used_outside_of_thispackage(Delphi)

Best regards.

synopse commented 4 months ago

Should work as you expect now.

Please reopen if needed.