Error compiling thr_lqueue.cc
Raphael Collet
raph at info.ucl.ac.be
Mon May 21 09:25:05 CEST 2007
Dear Evert,
I had a closer look at it today. The problem is that the file
thr_lqueue.cc is not supposed to be compiled. It was probably an
attempt to clean up a bit the ThreadsPool class. Both files
thr_lqueue.hh and thr_lqueue.cc should be removed from the sources.
We never had this issue before because we rely on 'make' for compiling
Mozart, and that file is not mentioned in the makefiles.
Thanks for notifying this issue.
Cheers,
raph
ti008977 at tiscali.nl wrote:
> Hi all,
>
> Im trying to compile using the microsoft express 2005 compiler.
>
> In thr_lqueue.cc I found this code:
>
> int ThreadQueue::getRunnableNumber()
> {
> ThreadQueueIterator iter(this);
> int ret=0;
> Thread**ptr;
> while (ptr=iter.getNext()) ret=(*ptr)->getRunnableNumber();
> return ret;
> }
>
> ptr can't be converted to iter.getNext(); but *ptr can.
> Then I get stuck at getRunnableNumber(), which is no part of Thread,
> but of ThreadsPool. It might, of course, also be recursive.
>
> Can anyone give me a clue?
>
More information about the mozart-hackers
mailing list