Barcode Xpress Mobile for iOS
|
00001 /************************************************************** 00002 * Copyright 2011 - Accusoft Corporation, Tampa Florida. * 00003 * This sample code is provided to Accusoft licensees "as is" * 00004 * with no restrictions on use or modification. No warranty * 00005 * for use of this sample code is provided by Accusoft. * 00006 **************************************************************/ 00007 00015 #import <Foundation/Foundation.h> 00016 #import "BXThreadData.h" 00017 00018 00023 @interface BXThreadQueue : NSObject { 00025 int m_threadCount; 00030 bool *m_threadUsed; 00035 NSLock *m_captureMutex; 00037 id m_sender; 00039 NSString *m_name; 00041 SEL m_executionCallback; 00043 SEL m_processingCallback; 00044 } 00045 00054 -(id)init; 00055 00066 -(id)initWithInfo :(NSString*)name :(int)threadCount :(id)sender :(SEL)executionCallback :(SEL)processingCallback; 00067 00079 -(void)dispatch :(BXThreadData*)threadData; 00080 00087 -(bool)canDispatch; 00088 00099 -(bool)canDispatch :(int*)pIndex; 00100 00101 @end