Skip to content

Commit b0bd000

Browse files
update_to_v9.6.30
1 parent c2b866b commit b0bd000

27 files changed

+291
-144
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
License Notice
22

33
This folder contains code samples ("Sample Code") for use with Dynamsoft Barcode Reader, a commercial software development kit licensed by Dynamsoft. The Sample Code may be modified and included in your end user software under the terms of the Dynamsoft Software License Agreement  https://www.dynamsoft.com/Products/barcode-reader-license-agreement.aspx ("Commercial License"). Except as expressly stated in the Commercial License, no other rights are granted in the Sample Code. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4-
Copyright © 2003–2022 Dynamsoft. All rights reserved.
4+
Copyright © 2003–2023 Dynamsoft. All rights reserved.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This repository contains multiple samples that demonstrates how to use the <a hr
3535

3636
The library requires a license to work, you use the API InitLicense to initialize license key and activate the SDK.
3737

38-
These samples use a free public trial license which require network connection to function. You can request a 30-day free trial license key from <a href="https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=c_cpp" target="_blank">Customer Portal</a> which works offline.
38+
These samples use a free public trial license which require network connection to function. You can request a 30-day free trial license key from <a href="https://www.dynamsoft.com/customer/license/trialLicense?architecture=dcv&product=dbr&utm_source=samples&package=c_cpp" target="_blank">Customer Portal</a> which works offline.
3939

4040
## Contact Us
4141

include/DynamsoftBarcodeReader.h

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,12 +2716,42 @@ typedef struct tagLineSegment
27162716
typedef struct tagDM_DLSConnectionParameters DM_DLSConnectionParameters;
27172717
typedef struct tagDM_DLSConnectionParameters DM_LTSConnectionParameters;
27182718

2719+
/**
2720+
2721+
* @brief Struct to represent the status of an instance pool.
2722+
2723+
*
2724+
2725+
* This struct contains information about the current status of an instance pool,
2726+
2727+
* including the number of authorized instances, remaining available instances,
2728+
2729+
* instances waiting to be acquired, and the total occurrences of waiting events.
2730+
2731+
*/
2732+
2733+
typedef struct tagInstancePoolStatus
2734+
{
2735+
/** The number of authorized instances, which represents the maximum available instances. */
2736+
int authorizedInstancesCount;
2737+
/** The count of available instances that are currently not in use. */
2738+
int remainingInstancesCount;
2739+
/** The number of 'GetInstance' requests that are currently waiting because there are no available instances in the pool. */
2740+
int waitingCreationInstances;
2741+
/** The total count of times that any operation has encountered a wait state. */
2742+
int totalWaitOccurrences;
2743+
}InstancePoolStatus;
2744+
2745+
2746+
2747+
27192748
/**
27202749
* @}defgroup Struct Struct
27212750
*/
27222751

27232752

27242753

2754+
27252755
#pragma pack(pop)
27262756

27272757
#pragma endregion
@@ -3599,18 +3629,19 @@ extern "C" {
35993629
*
36003630
* @param [in] countForThisDevice The maximum number of concurrent instances that the current device can run.
36013631
* @param [in] countForThisProcess Optional The maximum number of concurrent instances that the current process can run.
3632+
* @param [in] timeOut The maximum time(in millseconds) to wait for an available authorization or instance when calling Initlicense,GetInstance,or Deocode functions.
36023633
*
36033634
*/
3604-
DBR_API void DBR_SetMaxConcurrentInstanceCount(int countForThisDevice, int countForThisProcess);
3635+
DBR_API int DBR_SetMaxConcurrentInstanceCount(int countForThisDevice, int countForThisProcess,int timeOut);
36053636

36063637
/**
3607-
* Gets an idle Dynamsoft Barcode Reader instance running on concurrent instance mode.
3638+
* Creates an instance of Dynamsoft Barcode Reader.
36083639
*
36093640
*/
36103641
DBR_API void* DBR_GetInstance();
36113642

36123643
/**
3613-
*Recycles a Dynamsoft Barcode Reader instance running on concurrent instance mode.
3644+
*Restroys an instance of Dynamsoft Barcode Reader.
36143645
*
36153646
*/
36163647
DBR_API void DBR_RecycleInstance(void* barcodeReader);
@@ -3642,6 +3673,10 @@ extern "C" {
36423673
*Frees memory allocated for the string.
36433674
*/
36443675
DBR_API void DBR_FreeString(char** content);
3676+
3677+
3678+
3679+
DBR_API InstancePoolStatus DBR_GetInstancePoolStatus();
36453680
/**
36463681
* @}defgroup CCallback
36473682
*/
@@ -4497,17 +4532,18 @@ namespace dynamsoft
44974532
*
44984533
* @param [in] countForThisDevice The maximum number of concurrent instances that the current device can run.
44994534
* @param [in] countForThisProcess Optional The maximum number of concurrent instances that the current process can run.
4535+
* @param [in] timeOut The maximum time(in millseconds) to wait for an available authorization or instance when calling Initlicense,GetInstance,or Deocode functions.
45004536
*
45014537
*/
4502-
static void SetMaxConcurrentInstanceCount(int countForThisDevice, int countForThisProcess = 0);
4538+
static int SetMaxConcurrentInstanceCount(int countForThisDevice, int countForThisProcess = 0,int timeout = 0);
45034539

45044540
/**
45054541
* Gets an idle Dynamsoft Barcode Reader instance running on concurrent instance mode.
45064542
*
45074543
*/
45084544
static CBarcodeReader* GetInstance();
45094545

4510-
/**
4546+
/**
45114547
*Recycles a Dynamsoft Barcode Reader instance running on concurrent instance mode.
45124548
*
45134549
*/
@@ -4530,6 +4566,9 @@ namespace dynamsoft
45304566
*Frees memory allocated for the string.
45314567
*/
45324568
static void FreeString(char** content);
4569+
4570+
4571+
static InstancePoolStatus GetInstancePoolStatus();
45334572
private:
45344573
CBarcodeReader(const CBarcodeReader& r);
45354574

-1.71 KB
Binary file not shown.
13.1 KB
Binary file not shown.
-5.93 KB
Binary file not shown.
9.31 KB
Binary file not shown.
-1.68 KB
Binary file not shown.
17.1 KB
Binary file not shown.

lib/Windows/x64/DBRx64.lib

830 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)