#include <basis/mutex.h>
#include <structures/set.h>
+// forward.
+class monk_the_detective;
+
namespace octopi {
// forward.
// note that this should be called periodically by the controlling object.
// it will not be called automatically.
- basis::base_synchronizer &locker() { return *_ent_lock; }
- //!< provided for tighter synchronization; this should be used very carefully, e.g. with auto_synchronizer.
-
private:
entity_item_hash *_table; // our main storage object.
basis::mutex *_ent_lock; // protects our structures.
int _max_per_ent; // the maximum size allowed per entity.
int _items_held; // the number of items in residence.
- friend class monk_the_detective; // eerie supernatural powers, for testing.
+ friend class ::monk_the_detective; // eerie supernatural powers, for testing.
+
+ basis::base_synchronizer &locker() { return *_ent_lock; }
+ //!< provided for tighter synchronization; this should be used very carefully, e.g. with auto_synchronizer.
int scramble_counter(); // counts the number of items used.
run_client_server_test:
# launch the server into the background first. we have to hope it completes, eventually.
+ echo "launching the cromp server..."
($(FEISTY_MEOW_BINARIES)/test_cromp_server &)
+ echo "starting the cromp client..."
$(FEISTY_MEOW_BINARIES)/test_cromp_client --sends 1008
+ echo "cromp client has finished, now zapping server..."
# zap the server now, since it won't quit otherwise.
killall test_cromp_server
+ echo "after cromp client & server tests."