diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-30 12:33:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-30 12:33:25 +0900 |
commit | aeefd3fe454bfaed093355278b1e2caa84bfd77a (patch) | |
tree | 2d2b7ae985b004b3114ad2b25a879797be18d427 /doc/html/ntqdeepcopy.html | |
parent | 2cbcca0db1343e1c40e52af729a5eb34ca8a7e37 (diff) | |
download | tqt-aeefd3fe.tar.gz tqt-aeefd3fe.zip |
Rename threading nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 ... |