The pl_lock_globals() function

This function ensures global data integrity when you supply a custom driver that uses globally defined variables.

Function information Description of arguments
Function type: int
Return values: PL_RTN_OK, PL_RTN_FAIL