1
Uml Process / Re: Modelling Global Functions
« on: September 16, 2004, 06:42:08 am »
Platform is Visual C++ 2003 using MFC. I am creating a worker thread using AfxBeginThread() which I am using to point to a global function rather than a function within a class.
I pass a specialised object as a parameter to the thread function to deal with all the synchronisation of data between the threads.
As the work to be done by the thread is fairly simple I find it is "cleaner" to use a single function rather than to create a more complex class.
I'm not too worried about code generation. The intention is just to model that my application class is creating a thread and the interaction between them.
Thanks for your help,
Spencer.
I pass a specialised object as a parameter to the thread function to deal with all the synchronisation of data between the threads.
As the work to be done by the thread is fairly simple I find it is "cleaner" to use a single function rather than to create a more complex class.
I'm not too worried about code generation. The intention is just to model that my application class is creating a thread and the interaction between them.
Thanks for your help,
Spencer.