Attempted fix for pointer/integer confusion. The warning from GCC
was: "ThreadPool.cpp:123:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]." It appears that an integer from 0 to threadCount was passed as to a value ultimately assigned to (void *)((Private)p->arg). This commit moved the integer into an unfreed block of memory and passed a pointer to it, but perhaps the threadNumber doesn't really need to be passed at all?pull/231/head
parent
47919914a9
commit
4c860bf84b
Loading…
Reference in New Issue