remove invalid warning from createThread() function

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-03 19:44:01 +00:00
parent 837e37a224
commit 0e34d857b3

View file

@ -66,11 +66,6 @@ static void* threadEntryPoint(void* contextData)
ThreadIdentifier createThread(ThreadFunction entryPoint, void* data, const char* name)
{
// Visual Studio has a 31-character limit on thread names. Longer names will
// be truncated silently, but we'd like callers to know about the limit.
if (strlen(name) > 31)
qCritical("Thread name \"%s\" is longer than 31 characters and will be truncated by Visual Studio", name);
NewThreadContext* context = new NewThreadContext(entryPoint, data, name);
// Prevent the thread body from executing until we've established the thread identifier.