New issue
 Projects > cocos2d-x > Issues > Bug #4579

thread and lock in cpp classs

Bug #4579 [New]
pingchangxin 2014-03-27 07:44

我添加了个线程在类中 通过线程锁进行交互数据 mac 上可以跑通 android上不通过 我用的是 2.2.2版本
this is run log
下面是报错日志

03-27 15:36:46.009: D/dalvikvm(8672): Trying to load lib /data/data/com.vic.bpdownload/lib/libcocos2dcpp.so 0x428347a8
03-27 15:36:46.016: D/dalvikvm(8672): Added shared lib /data/data/com.vic.bpdownload/lib/libcocos2dcpp.so 0x428347a8
03-27 15:36:46.094: D/Cocos2dxActivity(8672): model=GT-I9100G
03-27 15:36:46.094: D/Cocos2dxActivity(8672): product=GT-I9100G
03-27 15:36:46.094: D/Cocos2dxActivity(8672): isEmulator=false
03-27 15:36:46.110: V/SoundPoolThread(8672): beginThread
03-27 15:36:46.110: V/SoundPoolThread(8672): run
03-27 15:36:46.173: D/libEGL(8672): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
03-27 15:36:46.173: D/libEGL(8672): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
03-27 15:36:46.180: D/libEGL(8672): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
03-27 15:36:46.305: D/cocos2d-x debug info(8672): <dict>
03-27 15:36:46.305: D/cocos2d-x debug info(8672): cocos2d.x.version: 2.2.2
03-27 15:36:46.305: D/cocos2d-x debug info(8672): cocos2d.x.compiled_with_profiler: false
03-27 15:36:46.305: D/cocos2d-x debug info(8672): cocos2d.x.compiled_with_gl_state_cache: true
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.vendor: Imagination Technologies
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.renderer: PowerVR SGX 540
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.version: OpenGL ES 2.0 build 1.9.RC2@2139099
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.max_texture_size: 2048
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.max_texture_units: 8
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.supports_PVRTC: true
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.supports_NPOT: true
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.supports_BGRA8888: true
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.supports_discard_framebuffer: true
03-27 15:36:46.305: D/cocos2d-x debug info(8672): gl.supports_vertex_array_object: true
03-27 15:36:46.305: D/cocos2d-x debug info(8672): </dict>
03-27 15:36:46.391: D/dalvikvm(8672): GC_CONCURRENT freed 255K, 8% free 9568K/10311K, paused 12ms+2ms, total 57ms
03-27 15:36:54.407: D/cocos2d-x debug info(8672): thread started...
03-27 15:36:59.540: D/JniHelper(8672): Failed to find class of org/cocos2dx/lib/Cocos2dxHelper
03-27 15:36:59.540: A/libc(8672): Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1), thread 8692 (Thread-503)

BPDownload.zip - 多线程断点续传 (1.9 MB) pingchangxin, 2014-03-27 07:44

Atom PDF

Status:New
Start date:2014-03-27
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:android
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.