casbin / casbin-cpp

An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++
https://casbin.org
Apache License 2.0
218 stars 61 forks source link

Multithreaded usage of casbin #226

Closed AlekseiChFirebolt closed 1 year ago

AlekseiChFirebolt commented 1 year ago

Hey Guys. I have an issues to use casbin in multithreaded mode in C++, it might be great if you will help me to way out :) If someone can please share - do you have a plans to support mutlithreading?

Context:

Problems:

Quesions:

Best regards, Aleksei

casbin-bot commented 1 year ago

@EmperorYP7 @sheny1xuan @cs1137195420

hsluoyz commented 1 year ago

@PokIsemaine

PokIsemaine commented 1 year ago

Thanks for feedback. You are right. It looks like there is something wrong with the current implementation of SyncedEnforcer::Enforce and our associated tests are flawed. I plan to fix this and add some tests in the next few days.