Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi Functions
#2
Function SingleFunc
Code:
Copy      Help
__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

Code:
Copy      Help
SingleFunc

at the beginning of each function, and it will end the function if some function that also has this line is running.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)