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