1 /*------------------------------------------------------------------------- 2 * drawElements Quality Program Tester Core 3 * ---------------------------------------- 4 * 5 * Copyright 2017 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 * 19 *//*! 20 * \file 21 * \brief Linux utilities. 22 *//*--------------------------------------------------------------------*/ 23 24 #include "tcuLnx.hpp" 25 26 namespace tcu 27 { 28 namespace lnx 29 { 30 EventState(void)31EventState::EventState(void) : m_quit(false) 32 { 33 } 34 ~EventState(void)35EventState::~EventState(void) 36 { 37 } 38 setQuitFlag(bool quit)39void EventState::setQuitFlag(bool quit) 40 { 41 de::ScopedLock lock(m_mutex); 42 m_quit = quit; 43 } 44 getQuitFlag(void)45bool EventState::getQuitFlag(void) 46 { 47 de::ScopedLock lock(m_mutex); 48 return m_quit; 49 } 50 51 } // namespace lnx 52 } // namespace tcu 53