查看单个帖子
旧 2009-05-04, 03:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】aix odmutex.cpp

aix odmutex.cpp
aix odmutex.cpp
hi,
i am using dwgdirect 1.12 with visualage c++ professional version 5. i get a compiler error when compiling odmutex.cpp with the od_posix_threads flag turned on:
"source/misc/odmutex.cpp", line 25.45: 1540-0274 (s) the name lookup for "m_data" did not find a declaration.
/usr/vacpp/bin/xlc -c -o lib/aix32pic/odmutex.o -doda_aix -qrtti -qsuppress=1500-029 -qmaxmem=4096 -qprocimported -qdataimported -qenum=intlong -qthreaded -doda_gcc -dhave_prototypes -dod_posix_threads -doda -d_cpp_toolkit_ -ddd_client_build -o -isource/misc -isource/ge -ithirdparty/freetype/freetype-2.1.7/include -ithirdparty/freetype/freetype-2.1.7/include/freetype -iinclude -iinclude/ge -iinclude/gi -iinclude/gs -iinclude/br -iinclude/wr -isource/database/dwgfiler -isource/database -isource/database/entities -isource/database/objects -isource/database/tables -isource/database/dwgfiler/out -isource/database/dwgfiler/in -isource/database/dwgfiler/r12 -isource/database/dxfio/in -isource/misc -isource -isource/gi -ithirdparty/freetype/freetype-2.1.7/include source/misc/odmutex.cpp
the m_data in this file is not declared in any of the headers that it includes. i assume that m_data should actually be _mutex? changing m_data to _mutex seems to work fine.
out of the box it is:
pthread_mutex_destroy((pthread_mutex_t*)m_data);[/font]
should it be the following?
pthread_mutex_destroy(&_mutex);
thanks
kelly
last edited by kmah; 4th may 2005 at 10:05 amfff">.
hi kelly,
that fix is correct, however, we don't recommend using multiple threads to access dwgdirect objects with the current 1.13 version of our libraries. we intend to firm up our threading support in the next major release (1.14).
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)