What exactly the ProC option THREADS=YES does?
Hi,
I have a question regarding to the ProC/C++ pre-compiler's option THREADS=YES.
I have a very large application, which contains more that a thousand of *. pc files. None of the *. pc files currently contain any EXEC SQL CONTEXT USE… statement. I’ve designed a small part of this whole functionality (one *. pc file) to run as a separate thread. Is uses a separate sql context, which will be allocated. All sql statements within this thread will be executed over a separate connection too, which has been opened in the allocated context.
If a add the THREADS=YES option for the whole project compilation, the ProC/C++ reports an error at any *, pc file, which does not have an EXEC SQL CONTEXT USE… statement. If I don’t use the THREAD=YES option, the statement EXEC SQL ENABLE THREADS still works, and sql context’s still can be allocated in the part, which runs as a separate thread. The functionality within the separate thread also works properly and simultaneously to the main thread’s functionality without any problems.