1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Fix pthread worker funcs to match the POSIX threads API

This commit is contained in:
Alexey Antipovsky
2020-11-11 05:35:06 +00:00
parent 83d3adf466
commit da691f7b7a
6 changed files with 104 additions and 87 deletions

View File

@ -71,10 +71,11 @@ typedef boost::tuple<ChildModuleList::iterator, string > threadInfo_t;
bool LOCAL = false;
void childReportThread(threadInfo_t& st)
void* childReportThread(threadInfo_t* st)
{
ChildModuleList::iterator& list = boost::get<0>(st);
string reportType = boost::get<1>(st);
assert(st);
ChildModuleList::iterator& list = boost::get<0>(*st);
string reportType = boost::get<1>(*st);
string remoteModuleName = (*list).moduleName;
string remoteModuleIP = (*list).moduleIP;
@ -144,9 +145,10 @@ void childReportThread(threadInfo_t& st)
pthread_exit(0);
}
void reportThread(string reporttype)
void* reportThread(string* reporttype)
{
string reportType = reporttype;
assert(reporttype);
string reportType = *reporttype;
Oam oam;