501 Resource Occupied by Another Thread
Message
Resource occupied by another thread.
Description
The current resource is being used by another thread and the operation cannot be completed.
Possible causes
- The same hotspot acceleration context is accessed by multiple threads concurrently.
- A new call is made before the previous asynchronous operation is completed.
Solution
- Ensure that the same context is used in only one thread.
- Wait for the previous operation to complete before starting a new one.
1026800001 API Not Initialized Properly
Message
API not initialized properly.
Description
Before using the API for hotspot acceleration, you need to call the initialization API.
Possible causes
- Other APIs are called before the initialization API is called.
- Failed to call the initialization API.
Solution
- Ensure that the initialization API is called before any other Hotspot Accelerate APIs are called.
- Check the return value of the initialization API to ensure that the initialization is successful.
1026800002 Invalid Context Index
Message
Invalid context index.
Description
The input context index is invalid.
Possible causes
- The input context index is out of the valid range.
- The context has been destroyed or is invalid.
Solution
- Ensure that the input context index is within the valid range.
- Ensure that the context is still valid and has not been destroyed.