Barcode Xpress Mobile for iOS
 All Classes Functions Variables Properties Pages
BXThreadQueue.h
1 /**************************************************************
2  * Copyright 2011 - Accusoft Corporation, Tampa Florida. *
3  * This sample code is provided to Accusoft licensees "as is" *
4  * with no restrictions on use or modification. No warranty *
5  * for use of this sample code is provided by Accusoft. *
6  **************************************************************/
7 
15 #import <Foundation/Foundation.h>
16 #import "BXThreadData.h"
17 
18 
23 @interface BXThreadQueue : NSObject {
30  bool *m_threadUsed;
35  NSLock *m_captureMutex;
39  NSString *m_name;
44 }
45 
53 -(id)init;
54 
65 -(id)initWithInfo :(NSString*)name threadcount:(int)threadCount sender:(id)sender executioncallback:(SEL)executionCallback processingcallback:(SEL)processingCallback;
66 
78 -(void)dispatch :(BXThreadData*)threadData;
79 
86 -(bool)canDispatch;
87 
98 -(bool)canDispatch :(int*)pIndex;
99 
100 @end
id m_sender
Object instance that will execute callbacks.
Definition: BXThreadQueue.h:37
Defines a class to hold data that is transferred to/from the threads processing images using Barcode ...
Definition: BXThreadData.h:21
NSString * m_name
A string representing the name of the thread queue. Set any arbitrary name.
Definition: BXThreadQueue.h:39
int m_threadCount
An int specifying the maximum number of threads to use.
Definition: BXThreadQueue.h:25
SEL m_processingCallback
Callback function to be executed before recognition is performed.
Definition: BXThreadQueue.h:43
Defines a class that manages the threads using Barcode Xpress to perform recognition and decoding of ...
Definition: BXThreadQueue.h:23
bool * m_threadUsed
A boolean array of length m_threadCount.
Definition: BXThreadQueue.h:30
SEL m_executionCallback
Callback function to be executed to perform recognition.
Definition: BXThreadQueue.h:41
NSLock * m_captureMutex
Mutex used to synchronize access to thread control data structures.
Definition: BXThreadQueue.h:35