Skip to content

Commit

Permalink
generic/mutex: add default export
Browse files Browse the repository at this point in the history
  • Loading branch information
bpowers committed Jul 13, 2016
1 parent e315e28 commit c4a36d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/generic/locked_fs.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Mutex} from './mutex';
import Mutex from './mutex';
import {FileSystem, SynchronousFileSystem} from '../core/file_system';
import {ApiError, ErrorCode} from '../core/api_error';
import {FileFlag, ActionType} from '../core/file_flag';
import {default as Stats, FileType} from '../core/node_fs_stats';
import {File} from '../core/file';

// TODO: also implement LockedFile to ensure that operations on files
// also grab the appropriate locks.
// also grab the appropriate locks?.
/*
export LockedFile<T extends File> implements File {
private _file: File;
Expand Down
2 changes: 1 addition & 1 deletion src/generic/mutex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
declare var setImmediate: (cb: Function) => void;

/// non-recursive mutex
export class Mutex {
export default class Mutex {
private _locked: boolean = false;
private _waiters: Function[] = [];

Expand Down

0 comments on commit c4a36d6

Please sign in to comment.