[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] re gmBackendListener

From: Horst Herb
Subject: Re: [Gnumed-devel] re gmBackendListener
Date: Sun, 1 Feb 2004 21:08:29 +1100
User-agent: KMail/1.5.9

On Sun, 01 Feb 2004 16:35, syan tan wrote:
> Today 16:35:07
> where the backend listener transfers a notify from postgres to
> gmDispatcher, won't it trigger a notification on relevant listeners
> registered in gmDispatcher outside of the gui thread? What if something was
> being registered in gmDispatcher at the same time from a different thread?
> Is there a lock inside gmDispatcher?

Remember we are dealing with *Python* threads. They are atomic in the sense 
that any single Python instruction cannot be disrupted by Python's thread 
scheduler. Hence list inserts are thread safe, and this is basically all 
registering a new callback does.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]