< prev index next >

src/hotspot/share/gc/z/zLock.hpp

Print this page

        

*** 1,7 **** /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 23,42 **** #ifndef SHARE_GC_Z_ZLOCK_HPP #define SHARE_GC_Z_ZLOCK_HPP #include "memory/allocation.hpp" ! #include <pthread.h> class ZLock { private: ! pthread_mutex_t _lock; public: - ZLock(); - ~ZLock(); - void lock(); bool try_lock(); void unlock(); }; --- 23,39 ---- #ifndef SHARE_GC_Z_ZLOCK_HPP #define SHARE_GC_Z_ZLOCK_HPP #include "memory/allocation.hpp" ! #include "runtime/os.hpp" class ZLock { private: ! os::PlatformMutex _lock; public: void lock(); bool try_lock(); void unlock(); };
< prev index next >