locker
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-28 17:48:20 +00:00
commit f2de281e20
2 changed files with 5 additions and 0 deletions

View file

@ -67,6 +67,7 @@
#include <View.h> #include <View.h>
#include <Screen.h> #include <Screen.h>
#include <Application.h> #include <Application.h>
#include <Locker.h>
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__

View file

@ -5,6 +5,8 @@ void MwApplication::ReadyToRun(){
} }
void MwApplication::Pulse(){ void MwApplication::Pulse(){
this->locker->Lock();
this->locker->Unlock();
} }
MwApplication::MwApplication(BRect rc, MwLL handle) : BApplication("application/milsko-generic") { MwApplication::MwApplication(BRect rc, MwLL handle) : BApplication("application/milsko-generic") {
@ -22,12 +24,14 @@ MwApplication::MwApplication(BRect rc, MwLL handle) : BApplication("application/
handle->haiku.view = new BView(this->window->Bounds(), NULL, B_FOLLOW_ALL_SIDES, B_WILL_DRAW); handle->haiku.view = new BView(this->window->Bounds(), NULL, B_FOLLOW_ALL_SIDES, B_WILL_DRAW);
this->ready = 0; this->ready = 0;
this->locker = new BLocker();
delete scr; delete scr;
} }
MwApplication::~MwApplication(){ MwApplication::~MwApplication(){
delete this->window; delete this->window;
delete this->locker;
} }
MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) { MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {