Comments (2)
嵌入式环境差别比较大,这个就是setmp
的jmpbuf
定义不太一样,需要你处理下。
可以参考 https://github.com/ossrs/state-threads/blob/srs/tools/porting/porting.c 看看具体怎么写才是对的。
欢迎Patch下。
from state-threads.
#define MD_GET_SP(_t) ((_t)->context[0].__jmpbuf[13])
看了下这行大概的意思是获取获取SP指针?编译报错是context[0]是个long类型变量,遂将上面代码改成
#define MD_GET_SP(_t) ((_t)->context[JB_RSP]
这样就编过了,而且测试好用。
from state-threads.
Related Issues (20)
- Support MSG_ZEROCOPY for streaming server. HOT 9
- UDP接收中文乱码 HOT 1
- Guide: Notes about code of state-threads. ST代码分析. HOT 4
- Performance improvement for st_usleep.
- 支持iOS和安卓吗? HOT 4
- Support Multiple Threads for Linux and Darwin only. HOT 4
- Cygwin: ST Support Windows 64bits HOT 2
- Support MIPS for OpenWRT HOT 1
- How to porting ST to other OS/CPU? 如何移植ST到其他系统或CPU?
- Support daemon(fork twice) for Darwin/OSX HOT 1
- Support Loongson CPU arch
- 如何使st库支持多线程? HOT 1
- AppleM1: Support Apple Silicon M1(aarch64). HOT 1
- Add utest for threads and codes.
- About How to Support EPOLLET Issue in ST
- Plan: Migrate to C++98/MIT. 计划迁移到C++98/MIT.
- Support backtrace and backtrace_symbols
- 如果协程释放将内存也同时释放,为什么会崩溃 HOT 2
- 增加可以将协程内存释放的功能 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from state-threads.