Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Async callback->data write thread?



I don't know anything about NSThread... however in
general one way to solve this problem is to have the
thread that is waiting to write wait on a semaphore,
and have the usb callback signal the semaphore when a
buffer is ready.

  -Dan

--- "Juan P. Pertierra" <email@hidden> wrote:

> Hello,
> 
> My application does async reads from USB.  I would
> like to have a  
> separate NSThread that does all the writing to disk,
> instead of doing  
> it inside the callback.  My question is, what is the
> best way to tell  
> the disk-writer thread that a buffer is ready?
> 
> Thanks,
> Juan
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Usb mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
http://lists.apple.com/mailman/options/usb/email@hidden
> 
> This email sent to email@hidden
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden

References: 
 >Async callback->data write thread? (From: "Juan P. Pertierra" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.