Hello, I'm writing a multi-threaded application. My worker threads get connection from an environment object as follows:.
//EnterCriticalSection(&cs);
conn = env->createConnection(username, password, connStr);
//LeaveCriticalSection(&cs);
For concurrency, should the connection be created in a critical section or not? Does the env need it? And why?
Thanks.