| 451 | } |
| 452 | |
| 453 | void ScriptsBuilderImpl::CallEvent(EventType type) |
| 454 | { |
| 455 | ScopeLock lock(_compileEventsLocker); |
| 456 | |
| 457 | const int32 index = _compileEvents.Count(); |
| 458 | _compileEvents.AddDefault(1); |
| 459 | auto& data = _compileEvents[index]; |
| 460 | data.Type = type; |
| 461 | |
| 462 | // Flush events on a main tread |
| 463 | if (IsInMainThread()) |
| 464 | { |
| 465 | for (int32 i = 0; i < _compileEvents.Count(); i++) |
| 466 | CallCompileEvent(_compileEvents[i]); |
| 467 | _compileEvents.Clear(); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | void ScriptsBuilderImpl::CallCompileEvent(EventData& data) |
| 472 | { |
nothing calls this directly
no test coverage detected