CTK icon indicating copy to clipboard operation
CTK copied to clipboard

found a bug in the file CTK/Plugins/org.commontk.eventadmin/tasks /ctkEASyncDeliverTasks.tpp

Open HBing110 opened this issue 2 years ago • 1 comments

CTK/Plugins/org.commontk.eventadmin/tasks /ctkEASyncDeliverTasks.tpp

139 line

After the entire project is initiated, there is only one instance of syncMasterThread. However, when multiple threads execute simultaneously, data may become disordered or duplicated.

HBing110 avatar Nov 21 '23 06:11 HBing110

1、 I added a line before line 139: ctkEASyncMasterThread* syncMasterThread = new ctkEASyncMasterThread(); Running with high concurrency, the data is fine, but I haven't found a suitable place to release memory.

2、 Modify line 139: { QMutexLocker l(&mutex1); syncMasterThread->syncRun(&runnable); } Inefficient, simultaneous nested message sending causing deadlock.

Hopes for assistance in resolving this bug. . Thank you.

HBing110 avatar Nov 22 '23 04:11 HBing110