+ // Step XX. Poll. Check if search should be aborted.
+ if (pos.thread() == 0 && ++NodesSincePoll > NodesBetweenPolls)
+ {
+ NodesSincePoll = 0;
+ poll(pos);
+ }
+
+ // Step XX. Check for aborted search and immediate draw
+ if ( StopRequest
+ || pos.is_draw<false>()
+ || ss->ply + 1 > PLY_MAX)
+ {
+ value = VALUE_DRAW;
+ goto undo;
+ }
+