| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
It's backwards compatible with NodeGit.enableThreadSafety() but looks like I took away NodeGit.disableThreadSafety() (you would have to use the more general NodeGit.setThreadSafetyStatus). |
Sorry, something went wrong.
|
BTW the async-only thread-safety is activated using NodeGit.setThreadSafetyStatus(1). NodeGit.enableThreadSafety() still does the full async+sync locking (equivalent to NodeGit.setThreadSafetyStatus(2)). It might be nice to add more user-friendly identifiers instead of 1 and 2 (and 0 - disabled) |
Sorry, something went wrong.
|
Thanks @srajko!
Definitely agree 👍 |
Sorry, something went wrong.
Let's make those strings that live on NodeGit.THREAD_SAFETY to be a little more clear. |
Sorry, something went wrong.
👍 added. |
Sorry, something went wrong.
This changed in nodegit/nodegit#968.
| Back | FazBrowse Home | New Git URL |
Adds a middle-ground thread-safety level, which locks async functions but skips locking of sync functions, to avoid the risk of blocking the main thread.
/cc @johnhaley81 @joshaber