uhd: inline thread priority setting

Push the ability to set thread priority out to the 52M
Transceiver interface, because that's where the thread
control exists.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2644 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
kurtis.heimerl 2011-11-26 03:17:21 +00:00
parent 24481decc2
commit 6b495a5218
3 changed files with 8 additions and 1 deletions

View File

@ -763,6 +763,8 @@ void Transceiver::writeClockInterface()
void *FIFOServiceLoopAdapter(Transceiver *transceiver) void *FIFOServiceLoopAdapter(Transceiver *transceiver)
{ {
transceiver->setPriority();
while (1) { while (1) {
transceiver->driveReceiveFIFO(); transceiver->driveReceiveFIFO();
transceiver->driveTransmitFIFO(); transceiver->driveTransmitFIFO();

View File

@ -169,7 +169,6 @@ public:
/** attach the radioInterface transmit FIFO */ /** attach the radioInterface transmit FIFO */
void transmitFIFO(VectorFIFO *wFIFO) { mTransmitFIFO = wFIFO;} void transmitFIFO(VectorFIFO *wFIFO) { mTransmitFIFO = wFIFO;}
protected: protected:
/** drive reception and demodulation of GSM bursts */ /** drive reception and demodulation of GSM bursts */
@ -194,6 +193,10 @@ protected:
friend void *TransmitPriorityQueueServiceLoopAdapter(Transceiver *); friend void *TransmitPriorityQueueServiceLoopAdapter(Transceiver *);
void reset(); void reset();
/** set priority on current thread */
void setPriority() { mRadioInterface->setPriority(); }
}; };
/** FIFO thread loop */ /** FIFO thread loop */

View File

@ -226,6 +226,8 @@ public:
/** returns the full-scale receive amplitude **/ /** returns the full-scale receive amplitude **/
double fullScaleOutputValue(); double fullScaleOutputValue();
/** set thread priority on current thread */
void setPriority() { mRadio->setPriority(); }
protected: protected: