• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSImage lockFocus] and threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSImage lockFocus] and threads


  • Subject: Re: [NSImage lockFocus] and threads
  • From: Brendan Younger <email@hidden>
  • Date: Sat, 21 Jul 2001 01:35:40 -0500

From what I hear, this is may or may not be a good thing. The view maintains a queue of lock/unlock calls so you can lock it as many times as you want in one thread, but I'm a bit nervous about the situation where one thread is interrupted inside a drawing call with an -unlockFocus call from the secondary thread. May I suggest that simply from a conceptual point of view, no two threads should ever share a view. For safety's sake, I suggest either putting a healthy number of locks around the view or simply not share it between threads.

Brendan Younger


  • Follow-Ups:
    • Re: [NSImage lockFocus] and threads
      • From: Aki Inoue <email@hidden>
References: 
 >[NSImage lockFocus] and threads (From: Michael Horn <email@hidden>)

  • Prev by Date: Re: [NSImage lockFocus] and threads
  • Next by Date: Re: [NSImage lockFocus] and threads
  • Previous by thread: Re: [NSImage lockFocus] and threads
  • Next by thread: Re: [NSImage lockFocus] and threads
  • Index(es):
    • Date
    • Thread