From 669e6ff57a4059a309ad8aaf5069793937630c45 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 22 Jun 2026 09:26:14 +0800 Subject: [PATCH] add thread safety notes --- programming/cplusplus/index.md | 5 +++++ programming/cplusplus/user-guide.md | 5 +++++ programming/dotnet/index.md | 5 +++++ programming/dotnet/user-guide.md | 6 ++++++ programming/java/index.md | 5 +++++ programming/java/user-guide.md | 6 ++++++ programming/python/index.md | 5 +++++ programming/python/user-guide.md | 6 ++++++ 8 files changed, 43 insertions(+) diff --git a/programming/cplusplus/index.md b/programming/cplusplus/index.md index 66b8323..ffd30cc 100644 --- a/programming/cplusplus/index.md +++ b/programming/cplusplus/index.md @@ -65,6 +65,11 @@ For a peek of DBR C++ Edition history, check the [Release Notes]({{ site.dbr_cpp To develop and run your application with Dynamsoft Barcode Reader SDK, you need an active license key: * Request a 30-day free trial license +## Thread Safety + +The SDK supports multi-threaded applications, but individual SDK instances are not thread-safe. +For concurrent processing, create a separate instance for each thread. + ## Contact Us Feel free to contact us if you have any questions. \ No newline at end of file diff --git a/programming/cplusplus/user-guide.md b/programming/cplusplus/user-guide.md index a59c7cd..09bb280 100644 --- a/programming/cplusplus/user-guide.md +++ b/programming/cplusplus/user-guide.md @@ -113,6 +113,11 @@ CLicenseManager::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", errorMs ```cpp CCaptureVisionRouter* cvRouter = new CCaptureVisionRouter; ``` + +> [!IMPORTANT] +> Instances of `CCaptureVisionRouter` are not thread-safe. +> Do not access the same `CCaptureVisionRouter` instance from multiple threads concurrently. +> Create a separate instance for each thread if concurrent processing is required. --- diff --git a/programming/dotnet/index.md b/programming/dotnet/index.md index 4d95e73..b614f29 100644 --- a/programming/dotnet/index.md +++ b/programming/dotnet/index.md @@ -58,6 +58,11 @@ For a peek of DBR .NET Edition history, check the [Release Notes]({{ site.dbr_do To develop and run your application with Dynamsoft Barcode Reader SDK, you need an active license key: * Request a 30-day free trial license +## Thread Safety + +The SDK supports multi-threaded applications, but individual SDK instances are not thread-safe. +For concurrent processing, create a separate instance for each thread. + ## Contact Us Feel free to contact us if you have any questions. \ No newline at end of file diff --git a/programming/dotnet/user-guide.md b/programming/dotnet/user-guide.md index 76d40e8..f58c4f2 100644 --- a/programming/dotnet/user-guide.md +++ b/programming/dotnet/user-guide.md @@ -97,6 +97,12 @@ using (CaptureVisionRouter cvRouter = new CaptureVisionRouter()) //code for invoking the barcode capturing } ``` + +> [!IMPORTANT] +> Instances of `CaptureVisionRouter` are not thread-safe. +> Do not access the same `CaptureVisionRouter` instance from multiple threads concurrently. +> Create a separate instance for each thread if concurrent processing is required. + ### Invoke the Barcode Capturing diff --git a/programming/java/index.md b/programming/java/index.md index e2943d4..57cb376 100644 --- a/programming/java/index.md +++ b/programming/java/index.md @@ -56,6 +56,11 @@ For a peek of DBR Java Edition history, check the [Release Notes]({{ site.dbr_ja To develop and run your application with Dynamsoft Barcode Reader SDK, you need an active license key: * Request a 30-day free trial license +## Thread Safety + +The SDK supports multi-threaded applications, but individual SDK instances are not thread-safe. +For concurrent processing, create a separate instance for each thread. + ## Contact Us Feel free to contact us if you have any questions. \ No newline at end of file diff --git a/programming/java/user-guide.md b/programming/java/user-guide.md index 614bb82..c06f2ee 100644 --- a/programming/java/user-guide.md +++ b/programming/java/user-guide.md @@ -122,6 +122,12 @@ public class ReadAnImage { ```java CaptureVisionRouter cvRouter = new CaptureVisionRouter(); ``` + +> [!IMPORTANT] +> Instances of `CaptureVisionRouter` are not thread-safe. +> Do not access the same `CaptureVisionRouter` instance from multiple threads concurrently. +> Create a separate instance for each thread if concurrent processing is required. + ### Invoke the Barcode Capturing diff --git a/programming/python/index.md b/programming/python/index.md index b24879e..beea10b 100644 --- a/programming/python/index.md +++ b/programming/python/index.md @@ -68,6 +68,11 @@ For a peek of DBR Python Edition history, check the [Release Notes]({{ site.dbr_ To develop and run your application with Dynamsoft Barcode Reader SDK, you need an active license key: * Request a 30-day free trial license +## Thread Safety + +The SDK supports multi-threaded applications, but individual SDK instances are not thread-safe. +For concurrent processing, create a separate instance for each thread. + ## Contact Us Feel free to contact us if you have any questions. \ No newline at end of file diff --git a/programming/python/user-guide.md b/programming/python/user-guide.md index e0ed5ee..17c9b90 100644 --- a/programming/python/user-guide.md +++ b/programming/python/user-guide.md @@ -82,6 +82,12 @@ else: ```python cvr_instance = CaptureVisionRouter() ``` + +> [!IMPORTANT] +> Instances of `CaptureVisionRouter` are not thread-safe. +> Do not access the same `CaptureVisionRouter` instance from multiple threads concurrently. +> Create a separate instance for each thread if concurrent processing is required. + ### Invoke the Barcode Capturing