aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_env.h
Commit message (Expand)AuthorAge
* Expose mapgen parameters on scripting initkwolekr2014-12-29
* Fix heart + bubble bar size on different texture packssapier2014-05-07
* Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr2013-06-27
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef THREADS_HEADER #define THREADS_HEADER #include "jthread/jmutex.h" #if (defined(WIN32) || defined(_WIN32_WCE)) typedef DWORD threadid_t; #else typedef pthread_t threadid_t; #endif inline threadid_t get_current_thread_id() { #if (defined(WIN32) || defined(_WIN32_WCE)) return GetCurrentThreadId(); #else return pthread_self(); #endif } #endif