mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-11-21 14:19:14 +01:00
- Using now os_usleep instead of usleep
This commit is contained in:
parent
62ac147339
commit
b7d5e68026
@ -69,7 +69,7 @@ Application::~Application(){
|
||||
log_printf("Application::~Application(line %d): Triggering AsyncDeleter\n",__LINE__);
|
||||
AsyncDeleter::triggerDeleteProcess();
|
||||
while(!AsyncDeleter::realListEmpty()){
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
}
|
||||
}while(!AsyncDeleter::deleteListEmpty());
|
||||
AsyncDeleter::destroyInstance();
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 5c7be021d07e7d482accabbe686e3ff5927dde6b
|
||||
Subproject commit 3559a18408126682d25ffe51ff6a43f99119e441
|
@ -1 +1 @@
|
||||
Subproject commit 64f225382a6b832458e3bcf054418c23edce4f1b
|
||||
Subproject commit a2f4abdbebedce82e36d10635d25d22038169795
|
@ -50,7 +50,7 @@ GuiImageAsync::~GuiImageAsync()
|
||||
{
|
||||
threadRemoveImage(this);
|
||||
while(pInUse == this)
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
|
||||
if (imgData)
|
||||
delete imgData;
|
||||
|
@ -126,7 +126,7 @@ void GuiSound::Stop()
|
||||
v->setState(Voice::STATE_STOP);
|
||||
|
||||
while(v->getState() != Voice::STATE_STOPPED)
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
}
|
||||
|
||||
SoundDecoder * decoder = SoundHandler::instance()->getDecoder(voice);
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "Application.h"
|
||||
#include "Application.h"
|
||||
#include "dynamic_libs/os_functions.h"
|
||||
#include "dynamic_libs/gx2_functions.h"
|
||||
#include "dynamic_libs/syshid_functions.h"
|
||||
@ -192,7 +192,7 @@ bool SplashScreen(s32 time,const char * message,u8 pos,u32 button){
|
||||
i = times;
|
||||
}
|
||||
i++;
|
||||
usleep(sleepingtime);
|
||||
os_usleep(sleepingtime);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ Mp3Decoder::~Mp3Decoder()
|
||||
{
|
||||
ExitRequested = true;
|
||||
while(Decoding)
|
||||
usleep(100);
|
||||
os_usleep(100);
|
||||
|
||||
mad_synth_finish(&Synth);
|
||||
mad_frame_finish(&Frame);
|
||||
|
@ -82,7 +82,7 @@ OggDecoder::~OggDecoder()
|
||||
{
|
||||
ExitRequested = true;
|
||||
while(Decoding)
|
||||
usleep(100);
|
||||
os_usleep(100);
|
||||
|
||||
if(file_fd)
|
||||
ov_clear(&ogg_file);
|
||||
|
@ -46,7 +46,7 @@ SoundDecoder::~SoundDecoder()
|
||||
{
|
||||
ExitRequested = true;
|
||||
while(Decoding)
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
|
||||
//! lock unlock once to make sure it's really not decoding
|
||||
Lock();
|
||||
|
@ -50,7 +50,7 @@ SoundHandler::SoundHandler()
|
||||
|
||||
//! wait for initialization
|
||||
while(!isThreadSuspended())
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
}
|
||||
|
||||
SoundHandler::~SoundHandler()
|
||||
@ -96,7 +96,7 @@ void SoundHandler::RemoveDecoder(s32 voice)
|
||||
voiceList[voice]->setState(Voice::STATE_STOP);
|
||||
|
||||
while(voiceList[voice]->getState() != Voice::STATE_STOPPED)
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
}
|
||||
SoundDecoder *decoder = DecoderList[voice];
|
||||
decoder->Lock();
|
||||
|
@ -48,7 +48,7 @@ void log_print(const char *str)
|
||||
}
|
||||
|
||||
while(log_lock)
|
||||
usleep(1000);
|
||||
os_usleep(1000);
|
||||
log_lock = 1;
|
||||
|
||||
s32 len = strlen(str);
|
||||
|
Loading…
Reference in New Issue
Block a user