This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <stack> | |
#include <stdexcept> | |
template <class T, class D = std::default_delete<T>> | |
class SmartObjectPool | |
{ | |
private: | |
struct ReturnToPool_Deleter { | |
explicit ReturnToPool_Deleter(std::weak_ptr<SmartObjectPool<T, D>* > pool) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* An implementation of C11 stdatomic.h directly borrowed from FreeBSD | |
* (original copyright follows), with minor modifications for | |
* portability to other systems. Works for recent Clang (that | |
* implement the feature c_atomic) and GCC 4.7+; includes | |
* compatibility for GCC below 4.7 but I wouldn't recommend it. | |
* | |
* Caveats and limitations: | |
* - Only the ``_Atomic parentheses'' notation is implemented, while | |
* the ``_Atomic space'' one is not. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blender Game Engine Started | |
1th iteration with time period 0.03333333333333333 | |
2th iteration with time period 0.06666666666666667 | |
3th iteration with time period 0.1 | |
4th iteration with time period 0.13333333333333333 | |
5th iteration with time period 0.16666666666666666 | |
6th iteration with time period 0.2 | |
7th iteration with time period 0.23333333333333334 | |
8th iteration with time period 0.26666666666666666 | |
9th iteration with time period 0.3 |