aboutsummaryrefslogtreecommitdiff
path: root/src/quicktune_shortcutter.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2014-03-26 18:53:11 +0200
committerPerttu Ahola <celeron55@gmail.com>2014-03-26 18:58:39 +0200
commit65d1cb8321d4a0519ded130c69ca16a1b9d8a3cc (patch)
tree6f1c6758be35c1464bfcb0d5677e7934327de472 /src/quicktune_shortcutter.h
parent564e11fc2f3731383cecedac8aade4dd9ecdc243 (diff)
downloadminetest-65d1cb8321d4a0519ded130c69ca16a1b9d8a3cc.tar.gz
minetest-65d1cb8321d4a0519ded130c69ca16a1b9d8a3cc.tar.bz2
minetest-65d1cb8321d4a0519ded130c69ca16a1b9d8a3cc.zip
Fix bug in RemoteClient::GetNextBlocks
Diffstat (limited to 'src/quicktune_shortcutter.h')
0 files changed, 0 insertions, 0 deletions
ell 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 "jmutex.h" JMutex::JMutex() { initialized = false; } JMutex::~JMutex() { if (initialized) #ifdef JMUTEX_CRITICALSECTION DeleteCriticalSection(&mutex); #else CloseHandle(mutex); #endif // JMUTEX_CRITICALSECTION } int JMutex::Init() { if (initialized) return ERR_JMUTEX_ALREADYINIT; #ifdef JMUTEX_CRITICALSECTION InitializeCriticalSection(&mutex); #else mutex = CreateMutex(NULL,FALSE,NULL); if (mutex == NULL) return ERR_JMUTEX_CANTCREATEMUTEX; #endif // JMUTEX_CRITICALSECTION initialized = true;