Progress on Framework for Server software
We have:
- Threaded stuff for sensors that stores data in a buffer and periodically dumps it to a binary file
- The use of the buffer reduces the number of times the mutex must be acquired (mutex = expensive)
- Will do some tests to see if the buffer improves performance
- Dummy function for querying sensors
- Sensor Handler function (QuerySensor) gets data from binary file, dumps to a buffer and then prints
There is something not quite right; QuerySensor appears to get the most recent dump that the sensor thread made.
eg: In the current version, dumps are made twice as often as queries, so you miss half the data.
Should be able to fix this after more sleep...
UCC git Repository :: git.ucc.asn.au