Skip to contentSkip to conversation

Bluez and threading

Bluez-users Jani Pellikka 2 participants 2 messages Dec 16, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

Is there support for threading in bluez?

For example, I have different threads for HCI inquering, sending stuff via rfcomm socket and for listening incoming rfcomm connections. Is it possible to do all this at the same time in separate threads?

Right now, I have written C++ code using bluez libs for all these threads but I get segmentation fault when I try to run them at the same time. So, I wonder if it was possible to thread these tasks at all.

Thanks in advance,

Signature · 12 lines
Jani


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
maintainer
#1 lore raw

Hi Jani,

Quoted 1 line

Is there support for threading in bluez?

the simple answer is yes.

Quoted 4 lines

For example, I have different threads for HCI inquering, sending stuff via rfcomm socket and for listening incoming rfcomm connections. Is it possible to do all this at the same time in separate threads?

The kernel will handle this. If not, it is a bug.

Quoted 4 lines

Right now, I have written C++ code using bluez libs for all these threads but I get segmentation fault when I try to run them at the same time. So, I wonder if it was possible to thread these tasks at all.

Check your own code first, because I don't think that it is a problem of the BlueZ library of kernel.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users