lcd4l.cpp: add threadname

This commit is contained in:
2021-06-30 18:28:33 +02:00
parent 9a68009b96
commit 24d05c67b7

View File

@@ -36,6 +36,7 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <iomanip> #include <iomanip>
#include <system/set_threadname.h>
#include <global.h> #include <global.h>
#include <neutrino.h> #include <neutrino.h>
@@ -298,6 +299,7 @@ void CLCD4l::Init()
void *CLCD4l::LCD4lProc(void *arg) void *CLCD4l::LCD4lProc(void *arg)
{ {
CLCD4l *PLCD4l = static_cast<CLCD4l *>(arg); CLCD4l *PLCD4l = static_cast<CLCD4l *>(arg);
set_threadname("lcd4l");
PLCD4l->Init(); PLCD4l->Init();
sleep(5); //please wait ! sleep(5); //please wait !