laforge
/
openbts-osmo
Archived
1
0
Fork 0

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>
This commit is contained in:
Thomas Tsou 2011-05-06 20:48:43 -04:00
parent 17750fd756
commit 67714e4292
5 changed files with 9 additions and 8 deletions

View File

@ -276,12 +276,6 @@ bool RadioInterface::tuneRx(double freq)
return usrp->setRxFreq(freq);
}
void RadioInterface::setPriority()
{
usrp->setPriority();
return;
}
void RadioInterface::start()
{
LOG(INFO) << "starting radio interface...";

View File

@ -190,7 +190,7 @@ public:
bool tuneRx(double freq);
/** set thread priority */
void setPriority();
void setPriority() { usrp->setPriority(); }
protected:

View File

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

View File

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

View File

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