Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.2 KB

File metadata and controls

48 lines (25 loc) · 1.2 KB
description Description of 'interlocked_increment' function in HyperDbg Scripts

interlocked_increment

Function

interlocked_increment

Syntax

interlocked_increment( GlobalVariable );

Parameters

[GlobalVariable (Addend)]

     A global variable to be added by `1`.

Description

Increments (increases by one) the value of the specified global variable as an atomic operation.

Return value

The function returns the resulting incremented value.

Examples

Result = interlocked_increment(.my_gloabl_counter);

Increments a global variable by 1 and saves the results into a local variable named Result.

Remarks

None

Related

interlocked_compare_exchange

interlocked_decrement

interlocked_exchange

interlocked_exchange_add