|
@@ -4,6 +4,7 @@
|
|
|
#include "modulecomm.h"
|
|
|
|
|
|
#include <thread>
|
|
|
+#include <iostream>
|
|
|
|
|
|
void threadsend(void * pa)
|
|
|
{
|
|
@@ -33,6 +34,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
void * pa1,*pa2,*pa3,*pa4,*pa5;
|
|
|
void * pb1,*pb2,*pb3,*pb4,*pb5;
|
|
|
+ void * pblambda;
|
|
|
|
|
|
pa1 = iv::modulecomm::RegisterSend("a1",100,1);
|
|
|
pa2 = iv::modulecomm::RegisterSend("a2",100,1);
|
|
@@ -41,6 +43,14 @@ int main(int argc, char *argv[])
|
|
|
pa5 = iv::modulecomm::RegisterSend("a6",1000000,1);
|
|
|
|
|
|
pb1 = iv::modulecomm::RegisterRecv("b1",ListenPointCloud);
|
|
|
+ pblambda = iv::modulecomm::RegisterRecv("b1",[](const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname){
|
|
|
+ (void)strdata;
|
|
|
+ (void)nSize;
|
|
|
+ (void)index;
|
|
|
+ (void)dt;
|
|
|
+ (void)strmemname;
|
|
|
+ std::cout<<" lisent b1 in lambda."<<std::endl;
|
|
|
+ });
|
|
|
pb2 = iv::modulecomm::RegisterRecv("b2",ListenPointCloud);
|
|
|
pb3 = iv::modulecomm::RegisterRecv("b3",ListenPointCloud);
|
|
|
pb4 = iv::modulecomm::RegisterRecv("b4",ListenPointCloud);
|