Mercurial > hg > beaglert
diff core/WriteFile.cpp @ 175:9bfe04d184fb experimental-fixing-AuxiliaryTask
Demonstrates issue #1374
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 28 Dec 2015 15:00:34 +0100 |
parents | 1e7db6610600 |
children |
line wrap: on
line diff
--- a/core/WriteFile.cpp Mon Dec 28 13:53:11 2015 +0100 +++ b/core/WriteFile.cpp Mon Dec 28 15:00:34 2015 +0100 @@ -21,6 +21,8 @@ threadIsExiting=false; threadRunning=false; writeAllFilesTask = BeagleRT_createAuxiliaryTask(WriteFile::run, 60, "writeAllFilesTask"); + printf("After writeAllFilesTask\n"); + dumpAuxTasks(); } WriteFile::WriteFile(){ @@ -29,6 +31,7 @@ header = NULL; footer = NULL; stringBuffer = NULL; + staticConstructor(); //TODO: this line should be in the constructor, but cannot be because of a bug in BeagleRT }; void WriteFile::init(const char* filename){ //if you do not call this before using the object, results are undefined @@ -45,7 +48,6 @@ stringBuffer = (char*)malloc(sizeof(char) * (stringBufferLength)); setHeader("variable=[\n"); setFooter("];\n"); - staticConstructor(); //TODO: this line should be in the constructor, but cannot be because of a bug in BeagleRT objAddrs.push_back(this); echoedLines = 0; echoPeriod = 1;