bug-gnustep
[Top][All Lists]
Advanced

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

[bug #24784] Thread safety issue with NSCalendarDate...


From: Richard Frith-Macdonald
Subject: [bug #24784] Thread safety issue with NSCalendarDate...
Date: Fri, 09 Jan 2009 08:33:44 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

Follow-up Comment #9, bug #24784 (project gnustep):

Yes it *is* complicated :-(

And yes, the main problems are because I had to maintain performance in the
normal case and maintain binary backwards compatibility.

Unfortunately the idea of the meta-class use does not seem workable (unless I
misunderstand).  The dispatch table of the class contains its instance methods
and the dispatch table of the meta-class contains the class methods.

During execution of +initialize we therefore want both dtables to be
available to the current thread, so that +initialize can call both class and
(eg if a single shared instance is created at that point) instance methods. 
At the same time we want neither dispatch table to be visible to other threads
(so the other threads can't execute eiter class methods or instance methods).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24784>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/






reply via email to

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