Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: rickg22 on December 24, 2005, 06:01:33 pm

Title: Moving the parsing to the mainthread?
Post by: rickg22 on December 24, 2005, 06:01:33 pm
I was wondering if there's any "quick-hack" way to do the parsing in the *main* thread, because I've seen no other way of profiling. If anybody knows a way, I'd really appreciate it.

Thanks!
Title: Re: Moving the parsing to the mainthread?
Post by: rickg22 on December 24, 2005, 06:06:37 pm
Ah, I found the way! :)

parser.cpp: 697

Code
#if 1
        thread->Parse();
#else
m_Pool.AddTask(thread, true);
#endif

If i want to stop profiling, i just put a 0 after the #if :)