Home | History | Annotate | Download | only in lnx
      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 
     27 namespace tcu
     28 {
     29 namespace lnx
     30 {
     31 
     32 EventState::EventState (void)
     33 	: m_quit(false)
     34 {
     35 }
     36 
     37 EventState::~EventState (void)
     38 {
     39 }
     40 
     41 void EventState::setQuitFlag (bool quit)
     42 {
     43 	de::ScopedLock lock(m_mutex);
     44 	m_quit = quit;
     45 }
     46 
     47 bool EventState::getQuitFlag (void)
     48 {
     49 	de::ScopedLock lock(m_mutex);
     50 	return m_quit;
     51 }
     52 
     53 } // lnx
     54 } // tcu
     55