Chaned PopfromQueue functions

This commit is contained in:
Granyaa
2026-01-14 12:57:37 +02:00
parent 6a0f2d76ad
commit 4999d05903
2 changed files with 7 additions and 4 deletions

View File

@@ -273,7 +273,7 @@ SendDataNanoAttachmentAsync(NanoAttachment *attachment, AttachmentData *data)
// TODO: Implement // TODO: Implement
// Check if the queue is empty, return true if yes - otherwise false. // Check if the queue is empty, return true if yes - otherwise false.
bool bool
isQueueEmpty(NanoAttachment *attachment) isNanoQueueEmpty(NanoAttachment *attachment)
{ {
return false; return false;
} }
@@ -282,8 +282,11 @@ isQueueEmpty(NanoAttachment *attachment)
// [hash on session id] -> [verdict+modification] // [hash on session id] -> [verdict+modification]
// Updating the table, and then return the session ID to the caller // Updating the table, and then return the session ID to the caller
SessionID SessionID
PopFromQueue(NanoAttachment *attachment) PopFromNanoQueue(NanoAttachment *attachment)
{ {
// Pop from queue
// Put into hash table.
SessionID session_id = 0; SessionID session_id = 0;
return session_id; return session_id;
} }

View File

@@ -295,7 +295,7 @@ freeCompressedBody(
/// ///
/// @return Returns true if the queue is empty, false otherwise. /// @return Returns true if the queue is empty, false otherwise.
/// ///
bool isQueueEmpty(NanoAttachment *attachment); bool isNanoQueueEmpty(NanoAttachment *attachment);
/// ///
/// @brief Pops a session ID from the queue and updates the table. /// @brief Pops a session ID from the queue and updates the table.
@@ -304,7 +304,7 @@ bool isQueueEmpty(NanoAttachment *attachment);
/// ///
/// @return The session ID that was popped from the queue. /// @return The session ID that was popped from the queue.
/// ///
SessionID PopFromQueue(NanoAttachment *attachment); SessionID PopFromNanoQueue(NanoAttachment *attachment);
/// ///
/// @brief Retrieves a verdict response for a given session ID from the table. /// @brief Retrieves a verdict response for a given session ID from the table.