How to make a callback?
#6

Quote:
Originally Posted by Incognito
Those are not "fake" callbacks. Polling the plugin on a timer in PAWN is the safest way to execute any AMX functions from the main thread. If you put that code in a thread of your own, it will simply crash the server.
As my mate said, we have tested (on Windows) in a thread created with pthread_create, from the pthread library. When the thread finish its work, it calls the the "OnSomething" callback in a Pawn script, and it works without any crashes or bugs, yet.

Could you please explain more how to crash it? I'm interested because you said "it WILL crash" and not "it MAY crash".
Reply


Messages In This Thread
How to make a callback? - by fastblast - 10.08.2009, 06:26
Re: How to make a callback? - by Pghpunkid - 10.08.2009, 07:20
Re: How to make a callback? - by fastblast - 10.08.2009, 08:40
Re: [SOLVED]How to make a callback? - by Incognito - 13.08.2009, 07:09
Re: [SOLVED]How to make a callback? - by paytas - 13.08.2009, 13:53
Re: [SOLVED]How to make a callback? - by fastblast - 13.08.2009, 14:27
Re: [SOLVED]How to make a callback? - by Incognito - 13.08.2009, 15:10
Re: [SOLVED]How to make a callback? - by fastblast - 15.08.2009, 21:07
Re: [SOLVED]How to make a callback? - by Incognito - 15.08.2009, 21:59
Re: [SOLVED]How to make a callback? - by Incognito - 22.08.2009, 23:02
Re: [SOLVED]How to make a callback? - by Incognito - 23.08.2009, 21:24
How to make a callback? - by fastblast - 24.08.2009, 08:31
How to make a callback? - by [NoV]LaZ - 24.08.2009, 08:40
Re: How to make a callback? - by Incognito - 24.08.2009, 18:27
Re: How to make a callback? - by Incognito - 25.08.2009, 16:52
Re: How to make a callback? - by XCultz - 26.08.2009, 20:36
Re: How to make a callback? - by kaisersouse - 26.08.2009, 21:16
Re: How to make a callback? - by Incognito - 29.08.2009, 17:37
Re: How to make a callback? - by Incognito - 31.08.2009, 23:33
Re: How to make a callback? - by hansen111 - 01.09.2009, 07:04
Re: How to make a callback? - by hansen111 - 01.09.2009, 07:23
Re: How to make a callback? - by fastblast - 01.09.2009, 10:10
Re: How to make a callback? - by Incognito - 01.09.2009, 17:10
Re: How to make a callback? - by hansen111 - 01.09.2009, 17:21
Re: How to make a callback? - by Streetplaya - 27.10.2009, 21:23
Re: How to make a callback? - by Y_Less - 28.10.2009, 10:02

Forum Jump:


Users browsing this thread: 2 Guest(s)