如何使用pthreads的与Android NDK? [英] How to use pthreads with Android NDK?

查看:329
本文介绍了如何使用pthreads的与Android NDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知pthreads的是C库的一部分。

As I know pthreads is a part of C library.

Android有仿生C库。

Android has Bionic C library.

如何使用pthreads的与Android NDK?

How to use pthreads with Android NDK?

推荐答案

没有使用pthreads的使用NDK或以其他方式之间的主要区别。所有的语法是标准的UNIX C.您可以游览 pthreads.h中位于 $ NDK /平台/ Android的<版> /弓臂的/ usr /包括。所有您需要做的,使该功能提供给你的是的#include< pthreads.h中> 。构建工具就知道哪里可以找到它。你可以看到所有支持的功能有,它是pretty的短。

There isn't a major difference between using pthreads with NDK or otherwise. All syntax is standard UNIX C. You can explore the pthread.h located at $NDK/platforms/android<version>/arch-arm/usr/include. All you have to do to make that functionality available to you is #include <pthread.h>. Build tools will know where to find it. You can see all supported functionality there and it's pretty short.

如果你正在寻找帮助学习pthreads的,谷歌是你最好的朋友。

If you're looking for help learning pthreads, Google is your best friend.

这篇关于如何使用pthreads的与Android NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆