Ticket #159: libffado-atomic_ops.patch
| File libffado-atomic_ops.patch, 3.1 kB (added by adi, 4 years ago) |
|---|
-
src/libieee1394/CycleTimerHelper.cpp
old new 27 27 #include "ieee1394service.h" 28 28 #include "libutil/PosixThread.h" 29 29 #include "libutil/PosixMutex.h" 30 #include "libutil/Atomic.h"31 30 #include "libutil/Watchdog.h" 32 31 33 32 #define DLL_PI (3.141592653589793238) -
src/libieee1394/IsoHandlerManager.cpp
old new 27 27 #include "cycletimer.h" 28 28 #include "libstreaming/generic/StreamProcessor.h" 29 29 30 #include "libutil/Atomic.h"30 #include <atomic_ops.h> 31 31 #include "libutil/PosixThread.h" 32 32 #include "libutil/SystemTimeSource.h" 33 33 #include "libutil/Watchdog.h" … … 82 82 IsoTask::requestShadowMapUpdate() 83 83 { 84 84 debugOutput(DEBUG_LEVEL_VERBOSE, "(%p) enter\n", this); 85 INC_ATOMIC(&request_update);85 AO_fetch_and_add1(&request_update); 86 86 87 87 // get the thread going again 88 88 signalActivity(); … … 227 227 // if some other thread requested a shadow map update, do it 228 228 if(request_update) { 229 229 updateShadowMapHelper(); 230 DEC_ATOMIC(&request_update); // ack the update230 AO_fetch_and_sub1(&request_update); // ack the update 231 231 assert(request_update >= 0); 232 232 } 233 233 -
src/libieee1394/IsoHandlerManager.h
old new 31 31 32 32 #include "IsoHandler.h" 33 33 34 #include <atomic_ops.h> 34 35 #include <sys/poll.h> 35 36 #include <errno.h> 36 37 #include <vector> … … 94 95 IsoHandlerManager& m_manager; 95 96 96 97 // the event request structure 97 int32_t request_update;98 AO_t request_update; 98 99 99 100 // static allocation due to RT constraints 100 101 // this is the map used by the actual thread -
src/libstreaming/generic/StreamProcessor.cpp
old new 34 34 35 35 #include "libutil/Time.h" 36 36 37 #include "libutil/Atomic.h"38 39 37 #include <assert.h> 40 38 #include <math.h> 41 39 -
src/libutil/Thread.h
old new 53 53 54 54 #include "../debugmodule/debugmodule.h" 55 55 56 #include "Atomic.h"57 56 #include <pthread.h> 58 57 #include <string> 59 58 -
src/libutil/TimestampedBuffer.cpp
old new 23 23 24 24 #include "config.h" 25 25 26 #include "libutil/Atomic.h"27 26 #include "libieee1394/cycletimer.h" 28 27 29 28 #include "TimestampedBuffer.h"
