diff options
Diffstat (limited to 'daemon/Buffer.cpp')
-rw-r--r-- | daemon/Buffer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/daemon/Buffer.cpp b/daemon/Buffer.cpp index c7abbf3..090a715 100644 --- a/daemon/Buffer.cpp +++ b/daemon/Buffer.cpp @@ -193,6 +193,17 @@ bool Buffer::eventHeader (const uint64_t curr_time) { return retval; } +bool Buffer::eventTid (const int tid) { + bool retval = false; + if (checkSpace(2*MAXSIZE_PACK32)) { + packInt(1); // key of 1 indicates a tid + packInt(tid); + retval = true; + } + + return retval; +} + void Buffer::event (const int32_t key, const int32_t value) { if (checkSpace(2 * MAXSIZE_PACK32)) { packInt(key); |