comparison dwtestoo.cpp @ 2935:440de3640522

C++: Fix warnings reported by clang on FreeBSD of unused capture variables.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 31 Dec 2022 00:59:04 +0000
parents 6d3da42f63af
children 1184f58135ba
comparison
equal deleted inserted replaced
2934:6d3da42f63af 2935:440de3640522
1811 DW::Event *controlevent = new DW::Event(); 1811 DW::Event *controlevent = new DW::Event();
1812 workevent->Reset(); 1812 workevent->Reset();
1813 finished = FALSE; 1813 finished = FALSE;
1814 ready = 0; 1814 ready = 0;
1815 UpdateMLE(threadmle, "Starting thread 1\r\n", DW_NULL); 1815 UpdateMLE(threadmle, "Starting thread 1\r\n", DW_NULL);
1816 new DW::Thread([this, startbutton, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void { 1816 new DW::Thread([this, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void {
1817 this->RunThread(1, mutex, controlevent, workevent, threadmle); 1817 this->RunThread(1, mutex, controlevent, workevent, threadmle);
1818 }); 1818 });
1819 UpdateMLE(threadmle, "Starting thread 2\r\n", DW_NULL); 1819 UpdateMLE(threadmle, "Starting thread 2\r\n", DW_NULL);
1820 new DW::Thread([this, startbutton, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void { 1820 new DW::Thread([this, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void {
1821 this->RunThread(2, mutex, controlevent, workevent, threadmle); 1821 this->RunThread(2, mutex, controlevent, workevent, threadmle);
1822 }); 1822 });
1823 UpdateMLE(threadmle, "Starting thread 3\r\n", DW_NULL); 1823 UpdateMLE(threadmle, "Starting thread 3\r\n", DW_NULL);
1824 new DW::Thread([this, startbutton, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void { 1824 new DW::Thread([this, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void {
1825 this->RunThread(3, mutex, controlevent, workevent, threadmle); 1825 this->RunThread(3, mutex, controlevent, workevent, threadmle);
1826 }); 1826 });
1827 UpdateMLE(threadmle, "Starting thread 4\r\n", DW_NULL); 1827 UpdateMLE(threadmle, "Starting thread 4\r\n", DW_NULL);
1828 new DW::Thread([this, startbutton, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void { 1828 new DW::Thread([this, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void {
1829 this->RunThread(4, mutex, controlevent, workevent, threadmle); 1829 this->RunThread(4, mutex, controlevent, workevent, threadmle);
1830 }); 1830 });
1831 UpdateMLE(threadmle, "Starting control thread\r\n", DW_NULL); 1831 UpdateMLE(threadmle, "Starting control thread\r\n", DW_NULL);
1832 new DW::Thread([this, startbutton, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void { 1832 new DW::Thread([this, startbutton, mutex, controlevent, workevent, threadmle](DW::Thread *thread) -> void {
1833 this->ControlThread(mutex, controlevent, workevent, threadmle); 1833 this->ControlThread(mutex, controlevent, workevent, threadmle);