On 9.5.2012 13:35, Jiri Svoboda wrote: > Okay, so that means when I create a fibril now, it is created as > detached, i.e. when it terminates, all its resources are > automatically freed, right? That should be mostly sufficient.
Yes, that's the idea. I thought you asked because you need something like fibril_join(). > Another idea, when i create a fibril with fibril_create(), the only > way to free its resources is to do fibril_add_ready() and let it run > until completion, right? No way to undo fibril_create() with > something like fibril_destroy() (if the fibril hasn't been runnable). > Just asking, though, this is probably not a big deal. You could probably use the already existing functions (plus free() on its stack) to undo fibril_create() without ever readying the fibril, but you are right there is no polished function for that. As you say, will not be a big problem to provide one. Jakub _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
