comparison Applications/Generic/GuiAdapter.cpp @ 1097:4383382db01d broker

deprecating LockingEmitter
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Oct 2019 22:31:18 +0200
parents ac88989817e3
children 05d05cba0f4f
comparison
equal deleted inserted replaced
1096:97cbb2c31a65 1097:4383382db01d
790 790
791 bool stop = false; 791 bool stop = false;
792 while (!stop) 792 while (!stop)
793 { 793 {
794 { 794 {
795 LockingEmitter::WriterLock lock(lockingEmitter_); 795 Deprecated::LockingEmitter::WriterLock lock(lockingEmitter_);
796 if(func != NULL) 796 if(func != NULL)
797 (*func)(cookie); 797 (*func)(cookie);
798 OnAnimationFrame(); // in SDL we must call it 798 OnAnimationFrame(); // in SDL we must call it
799 } 799 }
800 800
801 SDL_Event event; 801 SDL_Event event;
802 802
803 while (!stop && SDL_PollEvent(&event)) 803 while (!stop && SDL_PollEvent(&event))
804 { 804 {
805 LockingEmitter::WriterLock lock(lockingEmitter_); 805 Deprecated::LockingEmitter::WriterLock lock(lockingEmitter_);
806 806
807 if (event.type == SDL_QUIT) 807 if (event.type == SDL_QUIT)
808 { 808 {
809 // TODO: call exit callbacks here 809 // TODO: call exit callbacks here
810 stop = true; 810 stop = true;