我正在尝试编译项目parquet-cpp:https: //github.com/apache/parquet-cpp
当我做,这是我得到的错误:
[ 1%] Performing download step (download, verify and extract) for 'arrow_ep'
-- downloading...
src='https://github.com/apache/arrow/archive/a8f8ba0cbcf5f596f042e90b7a208e7a0c3925b7.tar.gz'
dst='/home/D070470/workspace/parquet-cpp/arrow_ep-prefix/src/a8f8ba0cbcf5f596f042e90b7a208e7a0c3925b7.tar.gz'
timeout='none'
CMake Error at arrow_ep-stamp/download-arrow_ep.cmake:22 (message):
error: downloading
'https://github.com/apache/arrow/archive/a8f8ba0cbcf5f596f042e90b7a208e7a0c3925b7.tar.gz'
failed
status_code: 1
status_string: "unsupported protocol"
log: libcurl was built with SSL disabled, https: not supported!
unsupported protocol
CMakeFiles/arrow_ep.dir/build.make:86: recipe for target 'arrow_ep-prefix/src/arrow_ep-stamp/arrow_ep-download' failed
make[2]: *** [arrow_ep-prefix/src/arrow_ep-stamp/arrow_ep-download] Error 1
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/arrow_ep.dir/all' failed
make[1]: *** [CMakeFiles/arrow_ep.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2 …Run Code Online (Sandbox Code Playgroud) 我有线程A只读取int,线程B只增加它.
我不需要线程A在值上完全是最新的,当它实际上是9时它可以是8,它没关系,因为它是一个循环并且他将在某个时刻达到9.
问题是我有一个固定大小的数组,一个存储当前索引的int(由线程A读取的最后一个安置)和另一个存储数组"大小"的int.int从0开始,每个更新线程A查看大小int是否大于索引int,如果是,它会捕获并读取新值.
我想知道我是否可以避免同步,因为我不需要精确的准确性.