src/corelib/concurrent/qtconcurrentrun.cpp
changeset 37 758a864f9613
parent 18 2f34d5167611
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    97     argument must be either a const reference or a pointer to an instance of
    97     argument must be either a const reference or a pointer to an instance of
    98     the class. Passing by const reference is useful when calling const member
    98     the class. Passing by const reference is useful when calling const member
    99     functions; passing by pointer is useful for calling non-const member
    99     functions; passing by pointer is useful for calling non-const member
   100     functions that modify the instance.
   100     functions that modify the instance.
   101     
   101     
   102     For example, calling QString::split() (a const member function) in a
   102     For example, calling QByteArray::split() (a const member function) in a
   103     separate thread is done like this:
   103     separate thread is done like this:
   104     
   104     
   105     \snippet doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp 4
   105     \snippet doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp 4
   106     
   106     
   107     Calling a non-const member function is done like this:
   107     Calling a non-const member function is done like this: