Using Multithreading – PB Docs 126


Using Multithreading

When you deploy a PowerBuilder application that contains shared objects or an NVO
assembly to .NET, the application can be run in a multithreaded environment. The
PowerBuilder .NET runtime library also supports .NET synchronization, enabling your
application to avoid possible data corruption.

.NET Threading in PowerScript

This PowerScript code fragment uses .NET threading:

Using .NET Synchronization Functions

To use .NET synchronization functions directly in PowerScript:

  1. Declare a global variable.
  2. Initialize the global variable.
  3. Use the global variable in your .NET synchronization functions. Define your types
    and functions within #IF DEFINED and #END IF preprocessor statements.

Windows Form example:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x