github.com/iDigitalFlame/xmt@v0.5.4/device/winapi/mem_no_cgo.go (about) 1 //go:build windows && (!cgo || !freemem) 2 // +build windows 3 // +build !cgo !freemem 4 5 // Copyright (C) 2020 - 2023 iDigitalFlame 6 // 7 // This program is free software: you can redistribute it and/or modify 8 // it under the terms of the GNU General Public License as published by 9 // the Free Software Foundation, either version 3 of the License, or 10 // any later version. 11 // 12 // This program is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 // GNU General Public License for more details. 16 // 17 // You should have received a copy of the GNU General Public License 18 // along with this program. If not, see <https://www.gnu.org/licenses/>. 19 // 20 21 package winapi 22 23 func freeRuntimeMemory() { 24 TerminateThread(CurrentThread, 0) 25 }