Create a new patch file for each patch and close old handle
This stopped a few misbehaviours
This commit is contained in:
@@ -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++);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user