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 
54 -(id)init;
55 
66 -(id)initWithInfo :(NSString*)name :(int)threadCount :(id)sender :(SEL)executionCallback :(SEL)processingCallback;
67 
79 -(void)dispatch :(BXThreadData*)threadData;
80 
87 -(bool)canDispatch;
88 
99 -(bool)canDispatch :(int*)pIndex;
100 
101 @end
SEL m_processingCallback
Callback executed before recognition is performed.
Definition: BXThreadQueue.h:43
SEL m_executionCallback
Callback executed to perform recognition.
Definition: BXThreadQueue.h:41
bool * m_threadUsed
Boolean array of length m_threadCount.
Definition: BXThreadQueue.h:30
Defines a class that manages the threads using Barcode Xpress to perform recognition and decoding of ...
Definition: BXThreadQueue.h:23
Defines a class holds data that is transferred to/from the threads processing images using Barcode Xp...
Definition: BXThreadData.h:21
int m_threadCount
The maximum number of threads to use.
Definition: BXThreadQueue.h:25
id m_sender
Object instance that will execute callbacks.
Definition: BXThreadQueue.h:37
NSString * m_name
Name of the thread queue. Set any arbitrary name.
Definition: BXThreadQueue.h:39
NSLock * m_captureMutex
Mutex used to synchronize access to thread control data structures.
Definition: BXThreadQueue.h:35