put h4_reader_process into USE_HCI_READER_THREAD part

This commit is contained in:
matthias.ringwald 2010-08-20 18:55:25 +00:00
parent 0c806b9a9e
commit 2c4a8e6a17

View File

@ -287,7 +287,8 @@ static int h4_process(struct data_source *ds) {
return 0;
}
static int h4_reader_process(struct data_source *ds) {
#ifdef USE_HCI_READER_THREAD
static int h4_reader_process(struct data_source *ds) {
// get token
char token;
read(hci_transport_h4->pipe_fds[0], &token, 1);
@ -302,7 +303,6 @@ static int h4_reader_process(struct data_source *ds) {
return 0;
}
#ifdef USE_HCI_READER_THREAD
static void *h4_reader(void *context){
while(1){
// read up to bytes_to_read data in