Sun Studio 12 Update 1: C++ User's Guide

3.3.16 Thread Options

Table 3–17 Thread Options

Option  

Action  

–mt

Compiles and links for multithreaded code. 

–xsafe=mem

(SPARC) Allows no memory-based traps. 

–xthreadvar

(SPARC) Changes the default thread-local storage access mode.