|
From: Daniel B. <nb...@ja...> - 2001-05-18 13:52:25
|
In my DansGuardian I have a class object in the main class that has the main() function. This object reads a bunch of conf files early in the main(), well before the return daemon.run();. The object contains code and data. The object is used in the other classes and the handleConnection(). Have I done a bad thing? As the object is AFAI can tell shared between the threads, this would cause a race condition and could cause random crashes? It contains non-mutex-protected code remember. Am I right? Perhaps I could take a copy of the object in the handleConnection() and use that instead to solve the problem? What do you think? -- Daniel Barron (Visit http://dansguardian.org/ - True web content filtering) |