Skip to content
Snippets Groups Projects
Select Git revision
  • 7f7e4b2202c7ca7ac79b6484642faaefbe685113
  • master default protected
  • beta/202506161038
  • stable/20250613.0
  • nightly/20250613.0
  • beta/202506101658
  • stable/20250610.0
  • nightly/20250610.0
  • beta/202506091027
  • beta/202506061543
  • nightly/20250605.0
  • beta/202506051039
  • beta/202506051002
  • beta/202506041611
  • beta/202506041335
  • beta/202505231812
  • stable/20250523.0
  • nightly/20250523.0
  • nightly/20250515.0
  • nightly/20250510.0
  • nightly/20250509.1
  • nightly/20250509.0
22 results

distantrenderer.cpp

Blame
    • Albert  Babí Oller's avatar
      7f7e4b22
      misc: change the way of manipulating window's display screen · 7f7e4b22
      Albert Babí Oller authored and Ming Rui Zhang's avatar Ming Rui Zhang committed
      - avoid using screen number as display number on Linux
      - support for area selection over multiple screens on Linux
      - make getFrame null safe
      - make video-full-screen mode show in the correct screen
      - add the option of "share all screens"
      - use x11 api for unix system for sharing screen areas
      
      Gitlab: #160
      
      Change-Id: Ibe47a4150b6a213950a0533d85e8cd7d5d159482
      7f7e4b22
      History
      misc: change the way of manipulating window's display screen
      Albert Babí Oller authored and Ming Rui Zhang's avatar Ming Rui Zhang committed
      - avoid using screen number as display number on Linux
      - support for area selection over multiple screens on Linux
      - make getFrame null safe
      - make video-full-screen mode show in the correct screen
      - add the option of "share all screens"
      - use x11 api for unix system for sharing screen areas
      
      Gitlab: #160
      
      Change-Id: Ibe47a4150b6a213950a0533d85e8cd7d5d159482
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ObjectPool.hpp 1.66 KiB
    /**
     *  Copyright (C) 2004-2005 Savoir-Faire Linux inc.
     *  Author: Jean-Philippe Barrette-LaPierre
     *             <jean-philippe.barrette-lapierre@savoirfairelinux.com>
     *          Yan Morin <yan.morin@savoirfairelinux.com> (cc++ mutex)
     *                                                                              
     *  This program is free software; you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation; either version 2 of the License, or
     *  (at your option) any later version.
     *                                                                              
     *  This program is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *                                                                              
     *  You should have received a copy of the GNU General Public License
     *  along with this program; if not, write to the Free Software
     *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     */
    
    #ifndef SFLPHONEGUI_OBJECTPOOL_H
    #define SFLPHONEGUI_OBJECTPOOL_H
    
    #include <list>
    #include <string>
    #include <cc++/thread.h>
    
    template< typename T >
    class ObjectPool
    {
     public:
      /**
       * This function will push a line in the pool.
       */
      void push(const T &line);
    
      /**
       * This function will wait for an available line.
       */
      bool pop(T &value, unsigned long time = ULONG_MAX);
    
     private:
      std::list< T > mPool;
    
      ost::Mutex mMutex;
      ost::Semaphore mSemaphore;
    };
    
    #include "ObjectPool.inl"
    
    #endif