Is it possible to create pointer of DBClientConnection
and use it in multiply threads?
connection = new DBClientConnection();
connection->connect("localhost");
Then use connection
in thread.
Is it safe to access to connection
simultaneously?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…