Skip to content

Commit

Permalink
Fix for LDC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
JC-comp committed Oct 18, 2023
1 parent 223ae4d commit 764fb38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/monitor.d
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ shared class MonitorBackgroundWorker {
}


void startMonitorJob(MonitorBackgroundWorker worker, Tid callerTid)
void startMonitorJob(shared(MonitorBackgroundWorker) worker, Tid callerTid)
{
try {
worker.watch(callerTid);
Expand All @@ -156,7 +156,7 @@ final class Monitor {
bool check_nosync = false;

// Configure Private Class Variables
MonitorBackgroundWorker worker;
shared(MonitorBackgroundWorker) worker;
// map every inotify watch descriptor to its directory
private string[int] wdToDirName;
// map the inotify cookies of move_from events to their path
Expand Down Expand Up @@ -187,7 +187,7 @@ final class Monitor {

assert(onDirCreated && onFileChanged && onDelete && onMove);
if (!buffer) buffer = new void[4096];
worker = new MonitorBackgroundWorker;
worker = new shared(MonitorBackgroundWorker);
worker.initialise();

// from which point do we start watching for changes?
Expand Down Expand Up @@ -346,7 +346,7 @@ final class Monitor {
return path;
}

MonitorBackgroundWorker getWorker() {
shared(MonitorBackgroundWorker) getWorker() {
return worker;
}

Expand Down

0 comments on commit 764fb38

Please sign in to comment.