WhiteHatBox
Share Page
Following(0)
Partner(s)
Karmagedon

Multithread global number variable

ReplyThanks 2019/08/15 19:43:47 0 0

I am creating a variable of type double/number, global.

This is a counter of certain actions. If I run my module in multithreaded mode, then how do I change this variable correctly?

I can use the Variable Operate action and just increase the value by one.

OR

Do I need to use the Lock command and change the variable inside it?

Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
Aprilcaicai
2019/08/16 16:06:14
Your settings are correct.


If it cannot work, you can edit the type to Initialize.
Karmagedon
2019/08/16 18:28:58
2 # Aprilcaicai 2019/8/16 16:06:14
Your settings are correct.
If it cannot work, you can edit the type to Initialize.
You are joking? You did not answer my question.
Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
Karmagedon
2019/11/14 23:54:28
2 # Aprilcaicai 2019/8/16 16:06:14
Your settings are correct.


If it cannot work, you can edit the type to Initialize.
1 # Karmagedon 2019/8/15 19:43:47

Do I need to use the Lock command and change the variable inside it?

Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
<< < 1> >>
VerifyCode
Advanced Option