|
a/libupnpp/control/discovery.cxx |
|
b/libupnpp/control/discovery.cxx |
|
... |
|
... |
187 |
typedef map<string, DeviceDescriptor>::iterator DevPoolIt;
|
187 |
typedef map<string, DeviceDescriptor>::iterator DevPoolIt;
|
188 |
|
188 |
|
189 |
// Worker routine for the discovery queue. Get messages about devices
|
189 |
// Worker routine for the discovery queue. Get messages about devices
|
190 |
// appearing and disappearing, and update the directory pool
|
190 |
// appearing and disappearing, and update the directory pool
|
191 |
// accordingly.
|
191 |
// accordingly.
|
192 |
static void *discoExplorer(void *)
|
192 |
void *UPnPDeviceDirectory::discoExplorer(void *)
|
193 |
{
|
193 |
{
|
194 |
for (;;) {
|
194 |
for (;;) {
|
195 |
DiscoveredTask *tsk = 0;
|
195 |
DiscoveredTask *tsk = 0;
|
196 |
size_t qsz;
|
196 |
size_t qsz;
|
197 |
if (!discoveredQueue.take(&tsk, &qsz)) {
|
197 |
if (!discoveredQueue.take(&tsk, &qsz)) {
|