C
Christopher Pisz
How would you go about giving some unique identifier back to a user, that
they can use to make calls to your module with, that is associated with a
pointer to an object in your multithreaded module?
I thought about something like
typedef ModuleObject * ID;
where ModuleObject is a class in my multithreaded module.
objects of the ModuleObject type frequently get allocated and released from
memory.
and I have a private list of ModuleObject pointers in my module.
, but I don't really want them to have access to the methods of the object
since it is multithreaded and more importantly, they have no business
calling methods directly, but should be calling the functions in the module.
they can use to make calls to your module with, that is associated with a
pointer to an object in your multithreaded module?
I thought about something like
typedef ModuleObject * ID;
where ModuleObject is a class in my multithreaded module.
objects of the ModuleObject type frequently get allocated and released from
memory.
and I have a private list of ModuleObject pointers in my module.
, but I don't really want them to have access to the methods of the object
since it is multithreaded and more importantly, they have no business
calling methods directly, but should be calling the functions in the module.