update memory consumption on task acknowledgement
[mTask.git] / mTaskInterpret.dcl
index 2e9e5b8..578d335 100644 (file)
@@ -11,7 +11,7 @@ from GenPrint import generic gPrint
 from Generics.gCons import class gCons, generic conses, generic consName, generic consIndex, generic consNum
 
 :: MTaskMSGRecv
-       = MTTaskAck Int
+       = MTTaskAck Int Int
        | MTTaskDelAck Int
        | MTSDSAck Int
        | MTSDSDelAck Int
@@ -23,8 +23,8 @@ from Generics.gCons import class gCons, generic conses, generic consName, generi
 :: MTaskMSGSend
        = MTTask MTaskInterval String
        | MTTaskDel Int
-       | MTSds Int String
-       | MTUpd Int String
+       | MTSds Int BCValue
+       | MTUpd Int BCValue
        | MTSpec
 
 :: MTaskInterval
@@ -36,8 +36,7 @@ from Generics.gCons import class gCons, generic conses, generic consName, generi
                {haveLed :: Bool
                ,haveAio :: Bool
                ,haveDio :: Bool
-               ,maxTask :: Int //Should be number of bytes reserved in total for shares, tasks and functions
-               ,maxSDS  :: Int
+               ,bytesMemory :: Int
        }
 
 :: BCValue = E.e: BCValue e & mTaskType e
@@ -151,7 +150,6 @@ instance seq ByteCode
 instance serial ByteCode
 
 toMessages :: MTaskInterval (Main (ByteCode a b)) BCState -> ([MTaskMSGSend], BCState)
-toSDSUpdate :: Int Int -> [MTaskMSGSend]
 
 toByteVal :: BC -> String
 toReadableByteCode :: (ByteCode a b) BCState -> (String, BCState)