Skip to content

Commit

Permalink
+ code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ailn authored and nayato committed Feb 14, 2022
1 parent df5cd79 commit 899e53f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/DotNetty.Common/ThreadDeathWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ static void Schedule(Thread thread, Action task, bool isWatch)

if (Interlocked.CompareExchange(ref started, 1, 0) == 0)
{
var watcherThread = new Thread(s => ((IRunnable)s).Run())
{
IsBackground = true
};
var watcherThread = new Thread(s => ((IRunnable)s).Run());
watcherThread.IsBackground = true;
watcherThread.Start(watcher);
ThreadDeathWatcher.watcherThread = watcherThread;
}
Expand Down
7 changes: 3 additions & 4 deletions src/DotNetty.Common/Utilities/HashedWheelTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ public HashedWheelTimer(
tickInterval,
long.MaxValue / this.wheel.Length));
}
this.workerThread = new Thread(st => this.worker.Run())
{
IsBackground = true
};

this.workerThread = new Thread(st => this.worker.Run());
this.workerThread.IsBackground = true;

this.maxPendingTimeouts = maxPendingTimeouts;

Expand Down

0 comments on commit 899e53f

Please sign in to comment.