Click here to Skip to main content
15,504,549 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505428-Mar-22 6:26
mvek505428-Mar-22 6:26 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877128-Mar-22 14:27
Member 1496877128-Mar-22 14:27 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Richard MacCutchan25-Mar-22 23:53
mveRichard MacCutchan25-Mar-22 23:53 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
trønderen25-Mar-22 13:58
trønderen25-Mar-22 13:58 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505426-Mar-22 6:07
mvek505426-Mar-22 6:07 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Richard MacCutchan25-Mar-22 23:51
mveRichard MacCutchan25-Mar-22 23:51 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877128-Mar-22 15:44
Member 1496877128-Mar-22 15:44 
GeneralRe: how do I verify - "all the ducks in the row "? Pin
Member 1496877129-Mar-22 7:05
Member 1496877129-Mar-22 7:05 
Here is "semifinal " version of WORKING code

//int status = hci_inquiry(adapter_id, inquiry_length,
 //max_devices, NULL, &inq_inf,flags );
 int status = 10;
 qDebug() << "Status " << QString::number(status);
 time->start();
 status =       hci_inquiry(
             dev_id,
             len,
             max_rsp,
             NULL,
             &ii,
             flags);
 time->start();
 // run QtConcurent
 QFuture<int> future = QtConcurrent::run(
             std::bind(
                 hci_inquiry,
                 dev_id,
                 len,
                 max_rsp,
                 lap,     //NULL,
                 &ii,
                 flags)
             );
//TOK
future.waitForFinished();  // test only need QTFutureWatcher
qDebug() <<"hci_inquiry elapsed time  " <<QString::number(time->elapsed());
qDebug() <<"hci_inquiry result  " <<QString::number(future.result());


I STILL do not understand why "plain function : usage " works with "lap" as NULL and QtConcurent usage DOES NOT. As I said before - I am not so sure I have only one version of hci_inquiry....

The be truthful - I need to get back to source code and try to build my own description for the hci_inquiry code.

It has been educational so far....

PS by semifinal - I need to "move" the QT version to its own object / library.
GeneralRe: how do I verify - "all the ducks in the row "? Pin
k505429-Mar-22 7:55
mvek505429-Mar-22 7:55 
QuestionHelp with calculating percentage in C Pin
ForNow20-Mar-22 6:37
ForNow20-Mar-22 6:37 
AnswerRe: Help with calculating percentage in C Pin
k505420-Mar-22 6:54
mvek505420-Mar-22 6:54 
GeneralRe: Help with calculating percentage in C Pin
ForNow20-Mar-22 7:47
ForNow20-Mar-22 7:47 
GeneralRe: Help with calculating percentage in C Pin
Calin Negru20-Mar-22 9:41
Calin Negru20-Mar-22 9:41 
JokeRe: Help with calculating percentage in C Pin
RedDk21-Mar-22 8:16
RedDk21-Mar-22 8:16 
AnswerRe: Help with calculating percentage in C Pin
Victor Nijegorodov20-Mar-22 8:42
Victor Nijegorodov20-Mar-22 8:42 
GeneralRe: Help with calculating percentage in C Pin
ForNow20-Mar-22 10:02
ForNow20-Mar-22 10:02 
QuestionHow to pass pointers and process them using ellipsis ? Pin
Member 1496877118-Mar-22 16:23
Member 1496877118-Mar-22 16:23 
AnswerRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 0:08
mveRichard MacCutchan19-Mar-22 0:08 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 5:06
Member 1496877119-Mar-22 5:06 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 6:01
mvek505419-Mar-22 6:01 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 9:44
Member 1496877119-Mar-22 9:44 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 13:00
mvek505419-Mar-22 13:00 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 7:11
mveRichard MacCutchan19-Mar-22 7:11 
Questionworking with pointers Pin
Calin Negru17-Mar-22 22:48
Calin Negru17-Mar-22 22:48 
AnswerRe: working with pointers Pin
Victor Nijegorodov18-Mar-22 0:16
Victor Nijegorodov18-Mar-22 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.