Skip to content

Commit

Permalink
Queue
Browse files Browse the repository at this point in the history
- Removed `TListener` references

Everything else

- Removed reference to old/duplicate `queue.d` module
  • Loading branch information
deavmi committed Oct 2, 2023
1 parent be91f5f commit 5cafbb8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 253 deletions.
2 changes: 1 addition & 1 deletion source/tristanable/manager/manager.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module tristanable.manager.manager;

import std.socket;
import tristanable.queue : Queue;
import tristanable.queue.queue : Queue;
import core.sync.mutex : Mutex;
import tristanable.manager.watcher : Watcher;
import tristanable.encoding : TaggedMessage;
Expand Down
2 changes: 1 addition & 1 deletion source/tristanable/manager/watcher.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import std.socket;
import bformat;
import tristanable.encoding;
import tristanable.exceptions;
import tristanable.queue;
import tristanable.queue.queue;
import bformat.client;

/**
Expand Down
2 changes: 1 addition & 1 deletion source/tristanable/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public import tristanable.manager;
/**
* A queue of queue items all of the same tag
*/
public import tristanable.queue : Queue;
public import tristanable.queue.queue : Queue;

/**
* Error handling type definitions
Expand Down
238 changes: 0 additions & 238 deletions source/tristanable/queue.d

This file was deleted.

12 changes: 0 additions & 12 deletions source/tristanable/queue/queue.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*/
module tristanable.queue.queue;

import tristanable.queue.listener : TListener;

import core.sync.mutex : Mutex;
import core.sync.condition : Condition;
import core.sync.exception : SyncError;
Expand Down Expand Up @@ -54,16 +52,6 @@ public class Queue
*/
private Mutex queueLock;

/**
* Attached queue listeners
*/
private SList!(TListener) listeners;

/**
* Lock for the listeners queue
*/
private Mutex listenersLock;

/**
* If a message is enqueued prior
* to us sleeping then we won't
Expand Down

0 comments on commit 5cafbb8

Please sign in to comment.