Began implementing DataThread.
commit7f450ec214763d1e6a24a8f80853bde4d413eecd
authorstrange <kawk256@gmail.com>
Sat, 13 Feb 2010 00:41:39 +0000 (12 17:41 -0700)
committerstrange <kawk256@gmail.com>
Sat, 13 Feb 2010 00:44:48 +0000 (12 17:44 -0700)
tree089541a4992306d06afcccae396db05fbfd91b3f
parentd2c012fed40bab382be21b11a0db53306bf34464
Began implementing DataThread.

Basically, DataThread is a separate thread, one per session, that handles
anything to do with the storage of data inside a running Session. In other
words, it stores all of the storage/*.{cpp,h} instances.

Removed StorageFactory, as it was simply adding extra complications on to
things. SnapshotIDs are now per-Session, rather than global. This means that
the lookup of a Snapshot from a SnapshotID is now always O(1) rather than
best-case O(1), worst-case O(n). n being the number of snapshots, of course.

A few other modifications here and there, but not very much worth noting . . .
other than the fact Aesalon is now more than 5000 lines again. (5004, to be
precise.)
17 files changed:
TODO
gui/src/data/DataReceiver.h
gui/src/data/NetworkReceiver.cpp
gui/src/data/NetworkReceiver.h
gui/src/session/DataThread.cpp [new file with mode: 0644]
gui/src/session/DataThread.h [new file with mode: 0644]
gui/src/session/Graph.cpp
gui/src/session/Graph.h
gui/src/session/GraphData.h
gui/src/session/Session.cpp
gui/src/session/Session.h
gui/src/storage/AllocEvent.cpp
gui/src/storage/BiTreeNode.cpp
gui/src/storage/SnapshotList.cpp
gui/src/storage/SnapshotList.h
gui/src/storage/StorageFactory.cpp [deleted file]
gui/src/storage/StorageFactory.h [deleted file]