Progress on Framework for Server software
authorSam Moore <[email protected]>
Thu, 15 Aug 2013 17:28:47 +0000 (01:28 +0800)
committerSam Moore <[email protected]>
Thu, 15 Aug 2013 17:28:47 +0000 (01:28 +0800)
commit259624013535f3c93315868efb5f6f611ba88470
treec40a64a906ac5e4d763088684bb0103a8fe8012f
parentd73bc7cb15b3fa065a75b889b4ec11ab765adb98
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...
server/Makefile
server/common.h [new file with mode: 0644]
server/log.h
server/main.c
server/query.c [new file with mode: 0644]
server/query.h [new file with mode: 0644]
server/sensor.c
server/sensor.h

UCC git Repository :: git.ucc.asn.au