Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/doc/src/frameworks-technologies/threads.qdoc

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    77** This file is part of the documentation of the Qt Toolkit.
    88**
    9 ** $QT_BEGIN_LICENSE:LGPL$
     9** $QT_BEGIN_LICENSE:L$
    1010** Commercial Usage
    1111** Licensees holding valid Qt Commercial licenses may use this file in
    1212** accordance with the Qt Commercial License Agreement provided with the
    13 ** Software or, alternatively, in accordance with the terms contained in
    14 ** a written agreement between you and Nokia.
     13** Software or, alternatively, in accordance with the terms contained in
     14** written agreement between you and Nokia.
    1515**
    16 ** GNU Lesser General Public License Usage
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
    18 ** General Public License version 2.1 as published by the Free Software
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
    20 ** packaging of this file.  Please review the following information to
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    23 **
    24 ** In addition, as a special exception, Nokia gives you certain additional
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    27 **
    28 ** GNU General Public License Usage
    29 ** Alternatively, this file may be used under the terms of the GNU
    30 ** General Public License version 3.0 as published by the Free Software
    31 ** Foundation and appearing in the file LICENSE.GPL included in the
    32 ** packaging of this file.  Please review the following information to
    33 ** ensure the GNU General Public License version 3.0 requirements will be
    34 ** met: http://www.gnu.org/copyleft/gpl.html.
     16** GNU Free Documentation License
     17** Alternatively, this file may be used under the terms of the GNU Free
     18** Documentation License version 1.3 as published by the Free Software
     19** Foundation and appearing in the file included in the packaging of this
     20** file.
    3521**
    3622** If you have questions regarding the use of this file, please contact
     
    4834    \page threads.html
    4935    \title Thread Support in Qt
     36
    5037    \brief A detailed discussion of thread handling in Qt.
    5138
     
    227214    \page threads-reentrancy.html
    228215    \title Reentrancy and Thread-Safety
    229    
     216
    230217    \keyword reentrant
    231218    \keyword thread-safe
    232    
     219
    233220    \previouspage Synchronizing Threads
    234221    \contentspage Thread Support in Qt
     
    257244    instance of the class.
    258245
     246
     247
     248
     249
     250
     251
     252
     253
     254
    259255    C++ classes are often reentrant, simply because they only access
    260256    their own member data. Any thread can call a member function on an
     
    281277    end up overwriting each other, and the variable is incremented
    282278    only once!
     279
     280
    283281
    284282    Clearly, the access must be serialized: Thread A must perform
     
    297295    declared with the \c mutable qualifier because we need to lock
    298296    and unlock the mutex in \c value(), which is a const function.
     297
     298
    299299
    300300    Many Qt classes are \e{reentrant}, but they are not made
     
    311311    (e.g. QCoreApplication::postEvent()).
    312312
    313     \note Qt Classes are only documented as \e{thread-safe} if they
    314     are intended to be used by multiple threads.
    315 
    316313    \note Terminology in the multithreading domain isn't entirely
    317314    standardized. POSIX uses definitions of reentrant and thread-safe
     
    338335    possible because each thread is allowed to have its own event
    339336    loop.
    340    
    341     Topics:
    342 
    343     \tableofcontents
    344337
    345338    \section1 QObject Reentrancy
     
    477470    \list
    478471
    479     \o \l{Qt::AutoConnection}{Auto Connection} (default) The behavior
    480        is the same as the Direct Connection, if the emitter and
    481        receiver are in the same thread. The behavior is the same as
    482        the Queued Connection, if the emitter and receiver are in
    483        different threads.
     472    \o \l{Qt::AutoConnection}{Auto Connection} (default) If the signal is
     473       emitted in the thread which the receiving object has affinity then
     474       the behavior is the same as the Direct Connection. Otherwise,
     475       the behavior is the same as the Queued Connection."
    484476
    485477    \o \l{Qt::DirectConnection}{Direct Connection} The slot is invoked
Note: See TracChangeset for help on using the changeset viewer.