[Casa-framework] Table lock under python
David King
dking at nrao.edu
Tue Sep 26 19:08:27 EDT 2006
Just folklore (I think I can hear Ger cringe even from here... but I don't
have all the issues in mind either).... I have a lot of these in my code;
they do no harm if you're sure you don't need a lock anymore:
itsMS->relinquishAutoLocks(True); // (just to be sure).
I still prefer to unlock manually within code, rather than depending on it
happening during (esp.) MS destruction. After some long, exhausting
spelunking into MS memory leaks last January(?), I still had not chased all
of mine down....
dk
Kumar Golap wrote:
> Hmm. unlocking does not seem to help ...in my destructor i have this
>
> Simulator::~Simulator()
> {
> if (ms_p) {
> ms_p->unlock();
> delete ms_p;
> }
More information about the Casa-framework
mailing list