Re: Creating a thread-local duplicate of a globally shared array

2011-07-01 Thread Steven Schveighoffer
On Fri, 01 Jul 2011 01:14:26 -0400, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I have two functions running concurrently and they share data via a globally shared array. Generally one thread modifies an array and potentially changes its length, the other thread reads from it. I have

Re: Creating a thread-local duplicate of a globally shared array

2011-07-01 Thread Andrej Mitrovic
Thanks for the help. But it appears I've ran into some kind of other bug. ddbg: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc005) at __aaInX (0x0041b616) thread(552) That seems like the hash method for checking keys. I have a static int[int] hash which I'm not sharing with other

Creating a thread-local duplicate of a globally shared array

2011-06-30 Thread Andrej Mitrovic
I have two functions running concurrently and they share data via a globally shared array. Generally one thread modifies an array and potentially changes its length, the other thread reads from it. I have to avoid too many locks and message passing wouldn't really work since I need fast access to