mirror of
https://github.com/zetaPRIME/libstarlight.git
synced 2025-06-26 05:32:46 +00:00
22 lines
402 B
C++
22 lines
402 B
C++
#include "ThreadTest.h"
|
|
|
|
#include "starlight/Application.h"
|
|
#include "starlight/ConfigManager.h"
|
|
|
|
using starlight::Application;
|
|
|
|
void ThreadTest::Body() {
|
|
auto& cc = Application::GetConfig("test");
|
|
int count = 0;
|
|
cc.Json()["pork"] = 0;
|
|
cc.Save();
|
|
cc.autoSave = true;
|
|
|
|
while(true) {
|
|
|
|
cc.Json()["pork"] = ++count;
|
|
//cc.Save();
|
|
Yield();
|
|
}
|
|
}
|