Create a new patch file for each patch and close old handle

This stopped a few misbehaviours
This commit is contained in:
2025-04-30 23:44:10 +03:00
parent 7d2ac662d0
commit 466aac142c
5 changed files with 63 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
while (modified != 0) {
modified = minimal_lib::getNewValue(5);
printf("getNewValue(5): %d\n", modified);
printf("getNewValue: %d\n", modified);
std::this_thread::sleep_for(std::chrono::seconds(1));
printf("otherValue: %d\n", minimal_lib::otherValue++);

View File

@@ -1,10 +1,11 @@
#include "minimal_lib.h"
#include <cstdio>
namespace minimal_lib {
int getNewValue(int x) {
static int value = 0;
value = value + 5;
value = value + x;
return value;
}