Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_corelib_thread_qreadwritelock.cpp File Reference

(c1889bd953892428a474822168c10a4f983fb3ae)

#include <QReadWriteLock>
#include <QByteArray>
Include dependency graph for src_corelib_thread_qreadwritelock.cpp:

Go to the source code of this file.

Classes

class  ReaderThread
class  WriterThread

Namespaces

namespace  duplicate_examples
 [1]

Functions

void read_file ()
void write_file ()
QByteArray readData ()
 [1]
QByteArray duplicate_examples::readData ()
 [2]
void duplicate_examples::writeData (const QByteArray &data)
 [2]
void writeData (const QByteArray &data)
 [4]

Variables

QReadWriteLock lock
 [lock]
QByteArray data
 [0]
QByteArray duplicate_examples::data
QReadWriteLock duplicate_examples::lock

Function Documentation

◆ read_file()

void read_file ( )

Referenced by ReaderThread::run().

Here is the caller graph for this function:

◆ readData()

QByteArray readData ( )

[1]

Definition at line 50 of file src_corelib_thread_qreadwritelock.cpp.

◆ write_file()

void write_file ( )

Referenced by WriterThread::run().

Here is the caller graph for this function:

◆ writeData()

void writeData ( const QByteArray & data)

[4]

Definition at line 84 of file src_corelib_thread_qreadwritelock.cpp.

References lock.

Variable Documentation

◆ data

[0]

Definition at line 47 of file src_corelib_thread_qreadwritelock.cpp.

◆ lock

[lock]

Definition at line 23 of file src_corelib_thread_qreadwritelock.cpp.

Referenced by ReaderThread::run(), WriterThread::run(), and writeData().