c++ : looking away to implemnt this senario
- by user63898
Hi
im looking to find how to implement this scenario:
i have logic code that is inside function,
now i like to be able to execute this function in a separate thread.
now what i have is a raw implementation of this ..
i simple Init the Thread that in its Start/Run method i keep the function logic .
how can i make it more generic ? so i could send the function ( mybe function pointer )
to generic thread factory/pool ?
in c++