diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-10-19 16:06:09 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-12-02 15:25:39 +0100 |
commit | efeb578065523b2882d71d91f38cd63115928b7a (patch) | |
tree | 43017d5d8683168f4a9ca2453fcf3d5f1975d34f /README.md | |
parent | 47b54cf5a4b6166944efa4ee4cd023d73ebe6c3e (diff) |
types, vm: refactor usage of global variables
Introduce an extensible private TLS context structure and use it within
libucode to store global state such as active object iterators.
This allows using libucode concurrently in multiple threads without
unintentionally sharing global state among them.
Also adjust the signal dispatching setup logic in `uc_vm_init()` to only
enable signal handling if no other VM in the same thread already handles
signals.
Suggested-by: Isaac de Wolff <idewolff@vincitech.nl>
[squash commits, move signal handler vm pointer and object iterator list
into common extensible TLS context, whitespace and naming adjustments,
extended signal setup logic]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions