[MTOS-dev] Background Task Change

Reed A. Cartwright reed at scit.us
Mon Feb 11 14:25:37 PST 2008


Hirotaka Ogawa wrote:
> 
> uum. We can do run tasks in a take_down callback function as like:
> 
> Isn't it enough?

Yeah, that'd work with the current implementation, but imagine if there 
are several different plugins, all wanting to 'finish' the connection 
before executing.  Then it is a waste of code for all of them to finish 
an already finished connection.  I think it is simply better from a 
development stand point to officially have a callback that will execute 
after the connection is finished.  This could be the take_down 
callbacks, or it could be a separate post_finish callback, and let the 
current take_down be a pre_finish callback.

 > Of course, we have another issues.

I think these can be addressed if the ability is built into MTOS instead 
of patched into it.  For me, post_finish is a way to execute appendix 
tasks instead of relying on background tasks.

-- 
*********************************************************
Reed A. Cartwright, PhD     http://scit.us/
Postdoctoral Researcher     http://www.dererumnatura.us/
Department of Genetics      http://www.pandasthumb.org/

Bioinformatics Research Center
North Carolina State University
Campus Box 7566
Raleigh, NC 27695-7566

Cuiusvis hominis est errare, nullius nisi
insipientis in errore perserverare. --Cicero


More information about the MTOS-dev mailing list