bytebuffer
[iotcloud.git] / version2 / src / C / PendingTransaction.h
index 09689d4d9ca21e21dd2cdc7ea5e0e449fec2f30e..3e72fa364579bea3a2ee7f7aa453b4bb3bfa2fa2 100644 (file)
@@ -14,16 +14,17 @@ private:
 
 public:
        PendingTransaction(int64_t _machineId);
+       ~PendingTransaction();
        /**
         * Add a new key value to the updates
         *
         */
-       void addKV(KeyValue * newKV);
+       void addKV(KeyValue *newKV);
        /**
         * Add a new key value to the guard set
         *
         */
-       void addKVGuard(KeyValue * newKV);
+       void addKVGuard(KeyValue *newKV);
        /**
         * Checks if the arbitrator is the same
         */
@@ -48,7 +49,7 @@ public:
 
        int64_t getMachineId() { return machineId; }
 
-       bool evaluateGuard(Hashtable<IoTString *, KeyValue *> * keyValTableCommitted, Hashtable<IoTString *, KeyValue *> * keyValTableSpeculative, Hashtable<IoTString *, KeyValue *> * keyValTablePendingTransSpeculative);
+       bool evaluateGuard(Hashtable<IoTString *, KeyValue *> *keyValTableCommitted, Hashtable<IoTString *, KeyValue *> *keyValTableSpeculative, Hashtable<IoTString *, KeyValue *> *keyValTablePendingTransSpeculative);
 
        Transaction *createTransaction();