Merge commit '0c7866eda3266bd7cba8bc6af03d969b777e188d'
This commit is contained in:
commit
3ac8a2de8d
2 changed files with 13 additions and 0 deletions
10
Jamulus.pro
10
Jamulus.pro
|
@ -6,6 +6,16 @@ contains(CONFIG, "noupcasename") {
|
||||||
TARGET = jamulus
|
TARGET = jamulus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# support multi-threading with OMP if requested
|
||||||
|
contains(CONFIG, "multithreading") {
|
||||||
|
unix {
|
||||||
|
message(The OpenMP multithreading is enabled.)
|
||||||
|
DEFINES += USE_OMP
|
||||||
|
QMAKE_CXXFLAGS += -fopenmp
|
||||||
|
QMAKE_LFLAGS += -fopenmp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CONFIG += qt \
|
CONFIG += qt \
|
||||||
thread \
|
thread \
|
||||||
release
|
release
|
||||||
|
|
|
@ -993,6 +993,9 @@ static CTimingMeas JitterMeas ( 1000, "test2.dat" ); JitterMeas.Measure(); // TE
|
||||||
vecChannelLevels );
|
vecChannelLevels );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_OMP
|
||||||
|
# pragma omp parallel for
|
||||||
|
#endif
|
||||||
for ( int i = 0; i < iNumClients; i++ )
|
for ( int i = 0; i < iNumClients; i++ )
|
||||||
{
|
{
|
||||||
int iClientFrameSizeSamples = 0; // initialize to avoid a compiler warning
|
int iClientFrameSizeSamples = 0; // initialize to avoid a compiler warning
|
||||||
|
|
Loading…
Reference in a new issue