async/threaded calls to natives
#1

Hi,

I'm working on my plugin, SampSharp and I was working some threading related stuff. In this threaded function I use calls to sampgdk_logprintf. This seems to work fine. I also tried calling the SendClientMessage native. This seems to work fine as well.

My question is: Is calling natives from different threads bad and could calling natives from different threads cause issues/crashes?

my only guess would by that pawn's stack might corrupt at simultaneous calls but I'm not even sure that the machine touches the stack when calling natives trough sampgdk.
Reply


Messages In This Thread
async/threaded calls to natives - by ikkentim - 13.01.2015, 16:49
Re: async/threaded calls to natives - by nGen.SoNNy - 13.01.2015, 17:21
Re: async/threaded calls to natives - by maddinat0r - 13.01.2015, 17:30
Re: async/threaded calls to natives - by ikkentim - 13.01.2015, 17:42
Re: async/threaded calls to natives - by maddinat0r - 13.01.2015, 18:24
Re: async/threaded calls to natives - by ikkentim - 13.01.2015, 21:11
Re: async/threaded calls to natives - by ][Noname][ - 14.01.2015, 04:15

Forum Jump:


Users browsing this thread: 2 Guest(s)