src/hotspot/os/posix/semaphore_posix.hpp
changeset 48635 612dfa1d8aad
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
--- a/src/hotspot/os/posix/semaphore_posix.hpp	Thu Jan 11 11:28:51 2018 +0100
+++ b/src/hotspot/os/posix/semaphore_posix.hpp	Thu Jan 11 18:42:36 2018 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -45,15 +45,7 @@
   void wait();
 
   bool trywait();
-  bool timedwait(unsigned int sec, int nsec) {
-    return timedwait(create_timespec(sec, nsec));
-  }
-
- private:
   bool timedwait(struct timespec ts);
-
-  // OS specific implementation to create a timespec suitable for semaphores.
-  struct timespec create_timespec(unsigned int set, int nsec);
 };
 
 typedef PosixSemaphore SemaphoreImpl;