Comments (3)
The threads don't necessarily need to be made daemons.
You can just register an "atexit" function that shuts down the threads.
At this point, I think we need an "initialize_pdo" function in the client that we always call to init the modules. That function could start the replication threads and then register the atexit() function to shutdown the threads cleanly.
from private-data-objects.
agreed, i dint know about atexit() until now. A cleaner solution than converting threads to daemons (i prefer non-daemon threads to enable completion of background tasks & a clean exit function rather than abruptly killing threads, especially when there is no error, and the main threads just wants to exit)
from private-data-objects.
Done.
from private-data-objects.
Related Issues (20)
- Incorporate the python script building infrastructure from the exchange contracts HOT 2
- Replace explicit python package installs with requirements.txt HOT 1
- Enable DCAP quote generation and verification HOT 1
- Consolidation of register-with-ledger step HOT 4
- Fix Script to determine whether CCF TP is ready for user TXNs HOT 4
- Run CCF instances in hardware mode
- Remove the https_proxy from the enclave.toml file and from the ias certificates class HOT 2
- Implement digital wallet app HOT 3
- Implement zk-SNARK contract library HOT 2
- Add support for Kubernetes deployment of a PDO app
- Make this repo SWSC best practices compliant HOT 2
- Update eservice and pservice python build
- Upgrade all cmake dependencies to 3.22 HOT 1
- Clean up interface and installation of the CCF python scripts HOT 1
- Add support for sharing bundles of related contracts HOT 1
- Consistency guarantees related to the PDO Transaction Processor (documentation and questions) HOT 1
- Address enclave registry cache on restart in the PDO TP HOT 3
- Copy service availability test from PDO contracts guardian to PDO services
- Implications of basename check in PDO TP policy evaluation
- The `warn` method in logging is obsolete and should be replaced with `warning` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from private-data-objects.