[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-devel] daemonCore instance in DaemonCore class
- Date: Tue, 26 Jan 2010 21:28:22 -0500
- From: Matthew Farrellee <matt@xxxxxxxxxx>
- Subject: Re: [Condor-devel] daemonCore instance in DaemonCore class
On 01/19/2010 09:33 PM, Marc Tardif wrote:
> Hi folks,
>
> I noticed that the DaemonCore member functions sometimes call the
> global daemonCore instance directly instead of calling the "this"
> instance. For example, in DaemonCore::Close_FD:
>
> retval = ( daemonCore->Close_Pipe ( fd ) ? 0 : -1 );
>
> So, I was wondering under what circumstances both the global daemonCore
> instance differed from the "this" instance. It seems an example of this
> can be found in the main function in daemon_core_main.cpp. However, I'm
> still not quite sure I understand why there is a need for having two
> such instances co-existing. Can someone provide a little explanation?
>
Marc,
I'd take the silence to mean no one knows off the top of their heads. It's entirely possible this is just an artifact of age that could be made more consistent.
Off the top of my head, I'd say maybe some functions only have access to the static context and must use daemonCore.
Best,
matt