Changeset View
Changeset View
Standalone View
Standalone View
src/lib/caching/kshareddatacache_p.h
Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Line(s) | 396 | if (timeoutsSupported && pthreadsProcessShared) { | |||
---|---|---|---|---|---|
397 | return LOCKTYPE_MUTEX; | 397 | return LOCKTYPE_MUTEX; | ||
398 | } | 398 | } | ||
399 | 399 | | |||
400 | #ifdef KSDC_SEMAPHORES_SUPPORTED | 400 | #ifdef KSDC_SEMAPHORES_SUPPORTED | ||
401 | { | 401 | { | ||
402 | sem_t tempSemaphore; | 402 | sem_t tempSemaphore; | ||
403 | QSharedPointer<KSDCLock> tempLock; | 403 | QSharedPointer<KSDCLock> tempLock; | ||
404 | if (timeoutsSupported) { | 404 | if (timeoutsSupported) { | ||
405 | #ifdef KSDC_TIMEOUTS_SUPPORTED | ||||
apol: There's a weird whitespace here. | |||||
405 | tempLock = QSharedPointer<KSDCLock>(new semaphoreTimedLock(tempSemaphore)); | 406 | tempLock = QSharedPointer<KSDCLock>(new semaphoreTimedLock(tempSemaphore)); | ||
apol: #else Q_UNREACHABLE?
Or what happens? | |||||
407 | #endif | ||||
406 | } else { | 408 | } else { | ||
407 | tempLock = QSharedPointer<KSDCLock>(new semaphoreLock(tempSemaphore)); | 409 | tempLock = QSharedPointer<KSDCLock>(new semaphoreLock(tempSemaphore)); | ||
408 | } | 410 | } | ||
409 | 411 | | |||
410 | tempLock->initialize(semaphoresProcessShared); | 412 | tempLock->initialize(semaphoresProcessShared); | ||
411 | } | 413 | } | ||
412 | #endif | 414 | #endif | ||
413 | 415 | | |||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |
There's a weird whitespace here.