1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 01:43:50 +02:00
- Added TODOs

Exceptions

- Added TODO
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-09 15:40:20 +02:00
parent d75d5407fd
commit b5e1b4065f
2 changed files with 9 additions and 0 deletions

View File

@ -105,6 +105,12 @@ public class Client : Thread
{ {
super(&loop); super(&loop);
this.connInfo = connInfo; this.connInfo = connInfo;
/**
* Setups the receiver and sender queue managers
*/
this.receiver = new ReceiverThread(this);
this.sender = new SenderThread(this);
} }
~this() ~this()
@ -659,6 +665,7 @@ public class Client : Thread
/* Lock queue */ /* Lock queue */
recvQueueLock.lock(); recvQueueLock.lock();
// TODO: Update the below to call `receiver.newRecv()`
/* Add to queue */ /* Add to queue */
recvQueue.insertAfter(recvQueue[], message); recvQueue.insertAfter(recvQueue[], message);
@ -864,6 +871,7 @@ public class Client : Thread
/* Lock queue */ /* Lock queue */
sendQueueLock.lock(); sendQueueLock.lock();
// TODO: Update the below to call `sender.newSend()`
/* Add to queue */ /* Add to queue */
sendQueue.insertAfter(sendQueue[], encodedMessage); sendQueue.insertAfter(sendQueue[], encodedMessage);

View File

@ -4,6 +4,7 @@ import std.conv : to;
public class BirchwoodException : Exception public class BirchwoodException : Exception
{ {
// TODO: Move outside one level
public enum ErrorType public enum ErrorType
{ {
INVALID_CONN_INFO, INVALID_CONN_INFO,