quchen / amoeba

Amœba is a distributed network.
Other
18 stars 1 forks source link

Wait for *all* forks #51

Closed quchen closed 10 years ago

quchen commented 10 years ago

Nodes right now sometimes fork off a very small worker function to do some looping. In a pool of many nodes where individuals can be shut down quite often, this potentially leaves orphaned threads running. Each of those threads should have some place that waits for them, even if it is just a value in the environment that stores the cancellation actions.

quchen commented 10 years ago

Implemented in 06b46068502c95429c5da9509afa3fbd8408b369. The claims made by the commit should be verified carefully again though, see #52.