I want to efficiently take a message from the inbound queue manged by the SDK and add it to a local queue - making this the only function of that thread. A simple assignment is only copying a pointer, not the data itself. Using this pointer later leads to all kinds of data corruption issues as it has been deallocated in the SDK.