• 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: Thread safe Fifo?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread safe Fifo?


  • Subject: Re: Thread safe Fifo?
  • From: Pontus Ilbring <email@hidden>
  • Date: Fri, 11 Feb 2005 16:23:59 +0100


On 2005-02-10, at 20.34, Brian O'Brien wrote:

Is there a thread safe queue structure?
I want one thread to push to the back and another to pull from the front.
Is there a thread safe fifi/queue?

A NSMutableArray combined with a NSLock should be sufficient. There are more efficient ways of implementing a fifo queue, but you rarely need to.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Thread safe Fifo? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: mouse events with menus
  • Next by Date: force end of editing and bindings
  • Previous by thread: Thread safe Fifo?
  • Next by thread: iPhoto-like view
  • Index(es):
    • Date
    • Thread