J
Jason
Hi,
I have this old class that was used for logging error messages and I thought
it would be a good exercise (for me) to convert it to .Net specifically c#.
This class uses two typed pointer lists to process log messages. One is the
input queue for incoming messages and the other is the processing queue for
processing the messages. The thread that does the processing will process
all the objects on the procesing queue and then swap the input and
processing queues and then process those messages. This allows for the
incoming messages to be added to a queue with out the potential of being
blocked by the processing thread.
The last part about swapping the queues (which is obviously done via
pointers) is where I'm not sure what to do in c#.
Anyone have any ideas?
Thanks
I have this old class that was used for logging error messages and I thought
it would be a good exercise (for me) to convert it to .Net specifically c#.
This class uses two typed pointer lists to process log messages. One is the
input queue for incoming messages and the other is the processing queue for
processing the messages. The thread that does the processing will process
all the objects on the procesing queue and then swap the input and
processing queues and then process those messages. This allows for the
incoming messages to be added to a queue with out the potential of being
blocked by the processing thread.
The last part about swapping the queues (which is obviously done via
pointers) is where I'm not sure what to do in c#.
Anyone have any ideas?
Thanks