what is event() ?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

what is event() ?

Post by F. Bluemers »

I wonder about this in fruit:

Code: Select all

static const bool UseEvent = true; // true
..
..
void search_check() {

   search_send_stat();

   if (UseEvent) event();

it is not in "The programming language C++" (Stroustrup)
so i guess it is a windows thingy? and what does it do?

Best
Fonzy
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: what is event() ?

Post by F. Bluemers »

Andrew Fan found it for me in protocol.cpp
I must have over.looked it
(edit: actually visual c colours event() blue,made me think it was something special)

Code: Select all

[Andrew (Very tired)] -  void event() {
 [Andrew (Very tired)] -     while (!SearchInfo->stop && input_available()) loop_step();
 [Andrew (Very tired)] -  }
thanks
Best
Fonzy