GithubHelp home page GithubHelp logo

kode / khacpp Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 11.0 36.14 MB

Fork of hxcpp with slight modifications for Kha/Kinc.

License: Other

Haxe 9.57% C++ 52.73% C 36.07% Smarty 0.37% Objective-C 0.80% Java 0.01% Objective-C++ 0.17% Batchfile 0.25% Shell 0.04%

khacpp's People

Contributors

aidan63 avatar alanvf avatar andyli avatar apprentice-alchemist avatar aurel300 avatar aw4kening avatar bji avatar codeservice avatar delahee avatar gama11 avatar haxiomic avatar hughsando avatar james4k avatar jcward avatar jgranick avatar jobs-git avatar justin-espedal avatar m0rkeulv avatar madrazo avatar ncannasse avatar player-03 avatar pperidont avatar realyuniquename avatar robdangerous avatar robocoder avatar simn avatar tanis2000 avatar thomasuster avatar tobil4sk avatar waneck avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

khacpp's Issues

sys.Thread.create doesn't work on android target

sys.Thread.create call freezes calling thread at

info->mSemaphore->Wait();

It looks like hxThreadFunc that is passed as HxCreateDetachedThread's param may not be called.
I noticed that khacpp's HxCreateDetachedThread definishion stores pointer to hxThreadFunc in local variable kinc_thread_t thread. And then pointer to it is passed to pthread_create. Could it be related?

This can be reproduced with minimal Kha project (make --init) and Thread.create placed somewhere in main, compiled for android (make android-native...)

        ...
	public static function main() {
		System.start({title: "Project", width: 1024, height: 768}, function (_) {
			// Just loading everything is ok for small projects
			Assets.loadEverything(function () {
				// Avoid passing update/render directly,
				// so replacing them via code injection works
				Scheduler.addTimeTask(function () { update(); }, 0, 1 / 60);
				System.notifyOnFrames(function (frames) { render(frames); });

				Thread .create(threadBody);
			});
		});
	}

	private static function threadBody(): Void {
		
		while (true) {
			Sys.sleep(1.0);
		}
	}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.