Raised This Month: $51 Target: $400
 12% 

ThreadExecute Fix Old version CreateThreadB server error


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
201724
Member
Join Date: May 2011
Old 10-11-2011 , 06:51   ThreadExecute Fix Old version CreateThreadB server error
Reply With Quote #1

New Update:
Fix Old Version CreateThreadB Memory Error


Update:
Add 6 Native
//none params ,return ThreadHandle
native CreateThreadA(handler[]);
//use params return ThreadHandle
native CreateThreadB(handler[],data[],datalen);
native TerminateAllThread();
// not ThreadHandle,isArray Count,CreateThreadA or CreateThreadB return var.
native TerminateThread(hThread);
native SuspendThread(hThread);
native ResumeThread(hThread);


Execute Add the SEH
Fix map end but Thread Running server shutdown bug!
Attached Files
File Type: zip Dll.zip (4.6 KB, 109 views)
File Type: zip src.zip (69.8 KB, 127 views)

Last edited by 201724; 10-20-2011 at 11:27.
201724 is offline
Send a message via MSN to 201724
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 10-11-2011 , 06:53   Re: ThreadExecute Modules!
Reply With Quote #2

lol
__________________
Preparing to release my plugins..
r0ck is offline
201724
Member
Join Date: May 2011
Old 10-11-2011 , 06:56   Re: ThreadExecute Modules!
Reply With Quote #3

Quote:
Originally Posted by r0ck View Post
lol
A very simple plug-in, some people may need it
201724 is offline
Send a message via MSN to 201724
r0ck
Senior Member
Join Date: Jun 2011
Location: India
Old 10-11-2011 , 07:20   Re: ThreadExecute Modules!
Reply With Quote #4

Quote:
Originally Posted by 201724 View Post
A very simple plug-in, some people may need it
no lol for u guys dont read rules before posting ah leave ....
__________________
Preparing to release my plugins..
r0ck is offline
201724
Member
Join Date: May 2011
Old 10-11-2011 , 08:00   Re: ThreadExecute Modules!
Reply With Quote #5

Quote:
Originally Posted by r0ck View Post
no lol for u guys dont read rules before posting ah leave ....
my english bad...
i'm form china..
201724 is offline
Send a message via MSN to 201724
Shadows In Rain
Senior Member
Join Date: Apr 2010
Location: Russia::Siberia
Old 10-11-2011 , 10:56   Re: ThreadExecute Modules!
Reply With Quote #6

How far is multi-threading compatible with AMXX debugger? It won't break call stack?
__________________
I'm using Google translator, yarrr. |.◕‿‿◕.|
Shadows In Rain is offline
Send a message via ICQ to Shadows In Rain
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-13-2011 , 08:54   Re: ThreadExecute Modules!
Reply With Quote #7

Is it really threaded? Is this going to hang the server? Can't really test right now.
Code:
#include < amxmodx > #include < thread > public plugin_init( ) {     register_srvcmd( "test", "CommandTest" ); } public CommandTest( ) {     CreateThread( "ThreadHangMe" ); } public ThreadHangMe( ) {     new i = 1;         while( i++ > 0 )     {         if( i % 500 )         {             log_amx( "%i passed.", i );         }     } }
__________________
xPaw is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-13-2011 , 21:37   Re: ThreadExecute Modules!
Reply With Quote #8

20 downloads..has anyone tried this? Does it work? Bueller?
__________________
Bugsy is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 10-13-2011 , 22:35   Re: ThreadExecute Modules!
Reply With Quote #9

If it is not threaded, the sleep() function it provided has already hang the server.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
201724
Member
Join Date: May 2011
Old 10-14-2011 , 11:59   Re: ThreadExecute Modules!
Reply With Quote #10

Quote:
Originally Posted by jim_yang View Post
If it is not threaded, the sleep() function it provided has already hang the server.

my use for 10000000 but ...cpu.....................

so sleep..
201724 is offline
Send a message via MSN to 201724
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode