-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
12 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
package org.jboss.threads; | ||
|
||
import java.time.temporal.ChronoUnit; | ||
import java.time.temporal.TemporalUnit; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
import org.wildfly.common.Assert; | ||
|
||
/** | ||
*/ | ||
final class JDKSpecific { | ||
|
||
static TemporalUnit timeToTemporal(final TimeUnit timeUnit) { | ||
switch (timeUnit) { | ||
case NANOSECONDS: return ChronoUnit.NANOS; | ||
case MICROSECONDS: return ChronoUnit.MICROS; | ||
case MILLISECONDS: return ChronoUnit.MILLIS; | ||
case SECONDS: return ChronoUnit.SECONDS; | ||
case MINUTES: return ChronoUnit.MINUTES; | ||
case HOURS: return ChronoUnit.HOURS; | ||
case DAYS: return ChronoUnit.DAYS; | ||
default: throw Assert.impossibleSwitchCase(timeUnit); | ||
} | ||
return timeUnit.toChronoUnit(); | ||
} | ||
|
||
static void onSpinWait() { | ||
// no operation | ||
Thread.onSpinWait(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.