diff options
Diffstat (limited to 'doc/html/ntqdeepcopy.html')
-rw-r--r-- | doc/html/ntqdeepcopy.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/ntqdeepcopy.html b/doc/html/ntqdeepcopy.html index 2e84c58de..37e76561c 100644 --- a/doc/html/ntqdeepcopy.html +++ b/doc/html/ntqdeepcopy.html @@ -92,24 +92,24 @@ that use shared classes. In the example below, the variable <tt>global_string</t get a unique copy of the data, and that any assignments to <tt>global_string</tt> will result in a deep copy. <p> <pre> TQDeepCopy<TQString> global_string; // global string data - <a href="ntqmutex.html">TQMutex</a> global_mutex; // mutex to protext global_string + <a href="tqmutex.html">TQMutex</a> global_mutex; // mutex to protext global_string ... void setGlobalString( const <a href="tqstring.html">TQString</a> &str ) { - global_mutex.<a href="ntqmutex.html#lock">lock</a>(); + global_mutex.<a href="tqmutex.html#lock">lock</a>(); global_string = str; // global_string is a deep copy of str - global_mutex.<a href="ntqmutex.html#unlock">unlock</a>(); + global_mutex.<a href="tqmutex.html#unlock">unlock</a>(); } ... void MyThread::run() { - global_mutex.<a href="ntqmutex.html#lock">lock</a>(); + global_mutex.<a href="tqmutex.html#lock">lock</a>(); <a href="tqstring.html">TQString</a> str = global_string; // str is a deep copy of global_string - global_mutex.<a href="ntqmutex.html#unlock">unlock</a>(); + global_mutex.<a href="tqmutex.html#unlock">unlock</a>(); // process the string data ... |