Global variables must be explicitly requested using the shared keyword: int threadLocal; // This is a thread-local variable. shared int global; // This is a global variable shared with all threads.
Globális változók a shared kulcsszóval deklarálhatók. int threadLocal; // This is a thread-local variable. shared int global; // This is a global variable shared with all threads.