fix build failure I4KUOB
This commit is contained in:
parent
234ce472a2
commit
462945f2c1
|
|
@ -36,7 +36,7 @@ public class MemoryThreadManager
|
|||
* @param size
|
||||
* @return
|
||||
*/
|
||||
public static ScheduledExecutorService initSharedThreadPool(int size)
|
||||
public static synchronized ScheduledExecutorService initSharedThreadPool(int size)
|
||||
{
|
||||
if (executor == null) {
|
||||
executor = Executors.newScheduledThreadPool(Math.max(size, 1), threadFactory);
|
||||
|
|
|
|||
Loading…
Reference in New Issue