I am looking to develop a File 'Adapter' with the following functionality.
The Adapter will be part of a larger 'Engine' that will take data from various external sources,apply business logic to it and then emit it to configured destinations.
The 'Adapter' is the mechanisn the Engine will use to 'talk' to an external [url removed, login to view] example there will be an adapter each for File,HL7,EDI,HTTP,TCP and so on.
As part of this project I am looking to develop a 'File Adapter' in C++ .This adapter will read a configuration file(this will be an XML file) that will tell it which directory to listen to and where to emit the data to.
This will be a multi-threaded adapter in that if there are 1000 files in the source location,then the adapter should not get hung up just because the processing of the previous message has not [url removed, login to view] will be a 'ThreadManager' whose job will be to manage [url removed, login to view] component will keep track of existing threads and start another thread if none is free.
Now i am no C++ expert but i do know that there is no inbuilt support for multithreading in C++.I could be wrong here but please do propose a solution.