Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - spencer_jones

Pages: [1]
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.

2
Uml Process / Modelling Global Functions
« on: September 16, 2004, 01:39:43 am »
In my software I need to model a number of separate threads. These are worker threads so they are global functions rather than part of a class.

What is the usual UML process for modelling a global function so that the design shows which class is creating the thread and allows the global function to further be modelled?

Pages: [1]