Are Codesite and Codesitemanager compleet threadsafe

Post questions here regarding the CodeSite Express edition

Are Codesite and Codesitemanager compleet threadsafe

Postby BartDebree » Mon Mar 24, 2014 11:03 am

I'm using codesite to find some bugs in my application with 6 threads running all kind of code.
Is it safe to use one codesite and codesidemanager to log all the data coming from different threads?
I use codesitemanager to set currentthreadname everytime message is send.
Is this safe, or does every thread needs his own objects to do so?
Posts: 1
Mon Mar 24, 2014 10:57 am

Re: Are Codesite and Codesitemanager compleet threadsafe

Postby Raize Support » Mon Mar 24, 2014 4:39 pm


Yes, the CodeSite Logger and CodeSiteManager can be used in multiple threads.

However, it is not necessary to use the CodeSiteManager to set the thread name every time you send a message. Instead, you can call CodeSiteManager.SetThreadName when you startup one of your threads. When you call SetThreadName, the manager creates a map for the current ThreadID to the Thread Name specified. Therefore, you simply need to do this once at the start of the thread and then all successive CodeSite calls (regardless of the logger) in that thread will get the mapped name.

Raize Software Support
Raize Software
Raize Support
Posts: 622
Fri Mar 25, 2011 9:04 pm

Return to Express Edition

Who is online

Users browsing this forum: No registered users and 1 guest