提交 b14aa062 编写于 作者: Y youngwolf

Use boost::atmoic instead of std::atmoic in standard edition, because vc has...

Use boost::atmoic instead of std::atmoic in standard edition, because vc has not add c++11's new library atmoic yet.

Compatible editon has already used boost::atmoic.
上级 e28e6226
......@@ -7,10 +7,6 @@
#include "../include/st_asio_wrapper_client.h"
using namespace st_asio_wrapper;
extern atomic_ushort completed_client_num;
extern int link_num;
extern __off64_t file_size;
/*
protocol:
head(1 byte) + body
......@@ -43,6 +39,10 @@ if head equal:
#define __off64_t_format "%lld"
#endif
extern atomic_ushort completed_client_num;
extern int link_num;
extern __off64_t file_size;
class file_client : public st_client
{
public:
......
......@@ -15,7 +15,7 @@
#define RESTART_COMMAND "restart"
#define REQUEST_FILE "get"
std::atomic_ushort completed_client_num;
atomic_ushort completed_client_num;
int link_num = 1;
__off64_t file_size;
......
......@@ -2,15 +2,11 @@
#ifndef FILE_CLIENT_H_
#define FILE_CLIENT_H_
#include <atomic>
#include <boost/atomic.hpp>
#include "../include/st_asio_wrapper_client.h"
using namespace st_asio_wrapper;
extern std::atomic_ushort completed_client_num;
extern int link_num;
extern __off64_t file_size;
/*
protocol:
head(1 byte) + body
......@@ -43,6 +39,10 @@ if head equal:
#define __off64_t_format "%lld"
#endif
extern atomic_ushort completed_client_num;
extern int link_num;
extern __off64_t file_size;
class file_client : public st_client
{
public:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册