Skip to content

Multithreading race. It is not a solution. #3

Closed
@heretic13

Description

Run 2 or more processes.

They pseudo-paralell execute code

"socket->waitForConnected(1000)"

then they all go to the branch else
{
// If the connection is insuccessful, this is the main process
// So we create a Local Server
server = new QLocalServer();
server->removeServer(serverName);
server->listen(serverName);
QObject::connect(server, SIGNAL(newConnection()), this, SLOT(slotConnectionEstablished()));
}

and now we have 2 or more running processes;

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions