OK
Size: a a a
OK
c/
OK
OK
OK
MS
unsigned char a[1500];
void ResourceManager::LoadAll() {
//std::lock_guard<std::mutex> guard(look);
memset(a, 0xFF, 1500);
}
void ResourceManager::loadThread()
{
while (true) {
//std::lock_guard<std::mutex> guard(look);
memset(a, 0x00, 1500);
}
}
c/
unsigned char a[1500];
void ResourceManager::LoadAll() {
//std::lock_guard<std::mutex> guard(look);
memset(a, 0xFF, 1500);
}
void ResourceManager::loadThread()
{
while (true) {
//std::lock_guard<std::mutex> guard(look);
memset(a, 0x00, 1500);
}
}
c/
MS
AP
MS
MS
AP
c/
J
OT
RN
k
unsigned char a[1500];
void ResourceManager::LoadAll() {
//std::lock_guard<std::mutex> guard(look);
memset(a, 0xFF, 1500);
}
void ResourceManager::loadThread()
{
while (true) {
//std::lock_guard<std::mutex> guard(look);
memset(a, 0x00, 1500);
}
}
bool enable = true;
void thread1(){
if(enable){
enable = false;
to_do_wrok();
}
}
void tread2(){
if(enable){
enable = false;
to_do_another_wrok();
}
}
k