aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/default/textures/default_brick.png
blob: def1cf0b17ba8883fd4748b941cd76219218ca63 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 10 00 00 00 10 08 03 00 00 00 28 2d 0f .PNG........IHDR.............(-.
0020 53 00 00 00 a8 50 4c 54 45 af 00 00 b3 00 00 b5 00 00 b8 00 00 ba 00 00 bb bf b8 bd 00 00 bf 00 S....PLTE.......................
0040 00 c0 00 00 c0 c4 bd c2 00 00 c3 00 00 c4 c7 c0 c5 00 00 c5 c9 c1 c7 00 00 c7 cb c3 c8 00 00 c9 ................................
0060 cc c5 ca 00 00 ca ce c6 cc 00 00 cc d0 c8 cd 00 00 ce d1 ca cf 00 00 cf d3 cb d0 00 00 d1 d5 cd ................................
0080 d2 00 00 d3 d7 cf d4 00 00 d4 d8 d0 d5 00 00 d6 da d2 d7 00 00 d7 dc d3 d8 00 00 d9 dd d5 da 00 ................................
00a0 00 db df d7 dc 00 00 dc e1 d8 dd 00 00 de e2 da e0 00 00 e0 e4 dc e1 e6 dd e2 00 00 e3 e7 df e4 ................................
00c0 00 00 e5 00 00 e6 eb e2 ea ee e5 eb f0 e7 f0 f5 ec d3 92 19 70 00 00 00 dc 49 44 41 54 18 19 05 ....................p....IDAT...
00e0 c1 8b 42 83 20 14 00 d0 5b 73 48 20 63 8a 57 44 1e 82 8f 69 cd 65 6b ab fe ff cf 3a 07 46 05 91 ..B.....[sH.c.WD...i.ek....:.F..
0100 8e d7 ab d6 f2 62 2c 47 90 65 f6 83 7a 4e 5e d2 20 90 8f 60 17 db 08 c5 b0 57 be ca 11 05 b8 a9 .....b,G.e..zN^....`.....W......
0120 76 e1 b2 b6 21 ba 66 88 b1 03 82 a5 f6 e3 72 b6 fe d5 a0 66 1b 94 c9 4b 43 30 d0 5b a9 38 d7 4f v...!.f.......r....f...KC0.[.8.O
0140 c0 4c aa b9 44 67 11 85 b7 b7 00 eb 70 0c 45 33 0c f5 e9 e4 3e cf bf 11 4a 6f 6a 44 ae 71 ee 2b .L..Dg......p.E3....>...JojD.q.+
0160 bd a8 17 e0 06 03 55 28 67 75 78 a3 36 31 10 9a d4 b4 67 ef d6 f0 ce 64 39 83 30 15 2e d6 4d f8 ......U(gux.61....g....d9.0...M.
0180 88 c7 7d 6f b7 08 bd b6 19 11 ac 42 7c b0 6f 91 ad 30 1b 4e fa 94 3a c9 30 59 83 4f c8 53 22 9a ..}o.......B|.o..0.N..:.0Y.O.S".
01a0 89 96 2a f2 65 ed a3 81 2a b6 f7 e0 8a ea fe b7 6f 53 17 dc 3f 9a 5e 18 1d 68 9f 39 c4 00 00 00 ..*.e...*.......oS..?.^..h.9....
01c0 00 49 45 4e 44 ae 42 60 82 .IEND.B`.
6'>126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
/*

    This file is a part of the JThread package, which contains some object-
    oriented thread wrappers for different thread implementations.

    Copyright (c) 2000-2006  Jori Liesenborgs (jori.liesenborgs@gmail.com)

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.

*/

#include "jthread.h"
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>

JThread::JThread()
{
	retval = NULL;
	mutexinit = false;
	running = false;
}

JThread::~JThread()
{
	Kill();
}

int JThread::Start()
{
	int status;

	if (!mutexinit)
	{
		if (!runningmutex.IsInitialized())
		{
			if (runningmutex.Init() < 0)
				return ERR_JTHREAD_CANTINITMUTEX;
		}
		if (!continuemutex.IsInitialized())
		{
			if (continuemutex.Init() < 0)
				return ERR_JTHREAD_CANTINITMUTEX;
		}
		if (!continuemutex2.IsInitialized())
		{
			if (continuemutex2.Init() < 0)
				return ERR_JTHREAD_CANTINITMUTEX;
		}
		mutexinit = true;
	}
	
	runningmutex.Lock();
	if (running)