cWorld:GetHeight() API
#1
Hi,

after recent experiences with running the server, I'd like to remove the cWorld:GetHeight() function from the exported API. The function makes too much trouble - when a plugin calls it, the function blocks until the chunk is available, but it holds the ChunkMap lock, thus creating a deadlock.

The recommended substitute is cWorld:TryGetHeight(), which returns immediately when the height is not available.

The GetHeight() function has long been marked in the API docs as obsolete, so it's time to finally get rid of it.

Does anyone have any immediate concerns about this change?
Reply
Thanks given by:


Messages In This Thread
cWorld:GetHeight() API - by xoft - 02-06-2014, 07:54 PM
RE: cWorld:GetHeight() API - by NiLSPACE - 02-08-2014, 09:00 PM
RE: cWorld:GetHeight() API - by xoft - 02-08-2014, 10:33 PM



Users browsing this thread: 2 Guest(s)