Unsolved
This post is more than 5 years old
1 Message
0
1342
May 8th, 2012 19:00
Developing multithread client applications based on the Smarts Remote API
Hi all
I'v read that the remote C/C++ API for Smarts has been discontinued, but I need to make maintenance of an application which interacts with Smarts Domain Managers throuhg the C API, now I need to make this application thread safe and supporting simultaneous requests comming from different threads, initially I have the next questions/doubts
1. Is the C remote API thread safe?
2. How I should intialize the API to work in multithread mode?
3. How should my application interact with the Smarts API to work in multithread mode?
I'll really appreciate any feedback
Thanks in advance
No Events found!



bkuhhirte
52 Posts
0
June 29th, 2012 08:00
Alex,
I think you are going to find that the C/C++ header files are pretty much inaccessible. This will make your compilation impossible. It has (sadly) been this way for a few years now since we chose to discontinue the SDK and since the various APIs are packaged with it, they went the same way.
Assuming you are using an old enough version of the SDK that it is still available (good luck finding a compiler that will work with it as well) the C API is completely thread safe as-is. The standard documentation used to provide examples of that compilation and uses in multiple threads.
I would suspect that you may want to use Java with JNI or Perl as an alternative.
Regards,
Bill