Commit Graph

4 Commits

Author SHA1 Message Date
Allan Odgaard
0f4fc14462 Improve stability during quit
When we quit, objects with static storage are destroyed. Since the order is undefined, we basically cannot reference other objects in destructors, unless we own them or they are reference counted.

One case that seems to be an actual problem is the oak::process_t type — based on crash logs this often seems to be destroyed last, and it unregisters itself in its destructor, but using an object that it previously did not own (but obtained via a sort of factory function).
2013-01-12 13:09:16 +01:00
Allan Odgaard
b2acb02a7f Use std::function with cf::callback_t 2012-09-09 16:22:19 +02:00
Allan Odgaard
9e1d10b5f1 Remove debug output
I was initially under the impression that no data should be sent past EOF but from testing it is clear that this assumption is incorrect. It’s unimportant though as we do handle the case (though we didn’t initially, and that’s why I put in the fprintf, to verify the situation I guarded for actually was happening).
2012-08-15 15:58:38 +02:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00