Skip to main content

Hi all.

We will be interacting with electronic labels, and the API is a bunch of restful web services, so we'll be using the RMNET routines.  I know the C$SOCKET functions are not "thread safe" because if you wait for a response, all threads will block (my manual tells me so!) but I was wondering about the RMNET routines.  Do they have the same limitation or can I launch a thread to do the API transaction, while the main function continues on?  The manual doesn't mention either way.

Hi all.

We will be interacting with electronic labels, and the API is a bunch of restful web services, so we'll be using the RMNET routines.  I know the C$SOCKET functions are not "thread safe" because if you wait for a response, all threads will block (my manual tells me so!) but I was wondering about the RMNET routines.  Do they have the same limitation or can I launch a thread to do the API transaction, while the main function continues on?  The manual doesn't mention either way.

RMNET can be used in a thread, but the Acu runtime itself is not thread safe. If RMNET is busy performing a request then the runtime will not switch to any other thread until it is done.


RMNET can be used in a thread, but the Acu runtime itself is not thread safe. If RMNET is busy performing a request then the runtime will not switch to any other thread until it is done.

Thank you.  This is as expected (rmnet routines will block from the runtime's perpsective), so now I can plan around that.