Use the same global methods for background threads as foreground ones.
Once again, actually using these is NOT SAFE, you need to pay very close attention to the C source code to know what functions you can use in multiple threads. The log function gets overwritten, so it should remain somewhat safe, but everything else is a potential bug in your background script.
Please register or sign in to comment