BeRo1985 / flre

FLRE - Fast Light Regular Expressions - A fast light regular expression library
GNU Lesser General Public License v2.1
94 stars 23 forks source link

Is FLRE thread safe?? #80

Open TommiPrami opened 3 years ago

TommiPrami commented 3 years ago

IF I do Following:

... GFLRE := TFLRE.Create(C_REG_EXP_STRING): ...

Thread 1: GFLRE.MartchAll(StringDataOFThread1Contect)

Thread 2: GFLRE.MartchAll(StringDataOFThread2Contect)

So multiple thread would share TFLRE instance but would run it on data in threads own context.

BeRo1985 commented 3 years ago

Yes, it should. This is also the reason, why whole the TFLREThreadLocalStorageInstance stuff exists.

TommiPrami commented 3 years ago

If you could, put this on the readme.md, valuable information.

Thanks man!

-Tee-

On Mon, Aug 9, 2021 at 10:41 AM Benjamin Rosseaux @.***> wrote:

Yes, it should. This is also the reason, why whole the TFLREThreadLocalStorageInstance stuff exists.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BeRo1985/flre/issues/80#issuecomment-895015988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7E2H7RLVYQF3O7IEJM2TTT36BA3ANCNFSM5BZKQM5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .