05-29-2009, 03:19 PM
Function SingleFunc
Insert
at the beginning of each function, and it will end the function if some function that also has this line is running.
__Handle+ __mutex_singlefunction ;;if __Handle is unknown identifier, replace to int
if(!__mutex_singlefunction) __mutex_singlefunction=CreateMutex(0 0 0)
if(WaitForSingleObject(__mutex_singlefunction 0)=WAIT_TIMEOUT) end
Insert
at the beginning of each function, and it will end the function if some function that also has this line is running.