forked from mindspore-Ecosystem/mindspore
clean warning
This commit is contained in:
parent
d55b6d4ed4
commit
ab0e3653a9
|
@ -17,9 +17,6 @@
|
||||||
#ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_LOG_H_
|
#ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_LOG_H_
|
||||||
#define MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_LOG_H_
|
#define MINDSPORE_CORE_MINDRT_INCLUDE_ACTOR_LOG_H_
|
||||||
|
|
||||||
#include <signal.h>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
@ -93,22 +93,8 @@ class Future : public FutureBase {
|
||||||
if (data->gotten) {
|
if (data->gotten) {
|
||||||
return data->t;
|
return data->t;
|
||||||
}
|
}
|
||||||
|
|
||||||
// try {
|
|
||||||
data->t = data->future.get();
|
data->t = data->future.get();
|
||||||
data->gotten = true;
|
data->gotten = true;
|
||||||
// } catch (std::future_error const &e) {
|
|
||||||
// ICTSBASE_LOG_STRING(ICTSBASE_LOG_COMMON_CODE, HLOG_LEVEL_ERROR, PID_MINDRT_LOG, "Future error: %s",
|
|
||||||
// "%s",
|
|
||||||
// e.what());
|
|
||||||
// } catch (std::exception const &e) {
|
|
||||||
// ICTSBASE_LOG_STRING(ICTSBASE_LOG_COMMON_CODE, HLOG_LEVEL_ERROR, PID_MINDRT_LOG, "Standard exception:
|
|
||||||
// %s",
|
|
||||||
// "%s", e.what());
|
|
||||||
// } catch (...) {
|
|
||||||
// ICTSBASE_LOG0(ICTSBASE_LOG_COMMON_CODE, HLOG_LEVEL_ERROR, PID_MINDRT_LOG, "Unknown exception.");
|
|
||||||
// }
|
|
||||||
|
|
||||||
return data->t;
|
return data->t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -390,12 +376,9 @@ class Promise {
|
||||||
explicit Promise(const T &t) : future(t) {}
|
explicit Promise(const T &t) : future(t) {}
|
||||||
|
|
||||||
virtual ~Promise() {
|
virtual ~Promise() {
|
||||||
// try {
|
|
||||||
if (future.data) {
|
if (future.data) {
|
||||||
future.Abandon();
|
future.Abandon();
|
||||||
}
|
}
|
||||||
// } catch (...) {
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetValue(const T &value) const { Set(value); }
|
void SetValue(const T &value) const { Set(value); }
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#define MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_FUTURE_BASE_H
|
#define MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_FUTURE_BASE_H
|
||||||
|
|
||||||
#include <future>
|
#include <future>
|
||||||
#include <iostream>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
@ -30,7 +29,6 @@
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class Future;
|
class Future;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class Promise;
|
class Promise;
|
||||||
class LessFuture {
|
class LessFuture {
|
||||||
|
|
|
@ -17,9 +17,7 @@
|
||||||
#ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_OPTION_H
|
#ifndef MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_OPTION_H
|
||||||
#define MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_OPTION_H
|
#define MINDSPORE_CORE_MINDRT_INCLUDE_ASYNC_OPTION_H
|
||||||
|
|
||||||
#include <type_traits>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "actor/log.h"
|
#include "actor/log.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
#include "async/uuid_generator.h"
|
#include "async/uuid_generator.h"
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <climits>
|
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace uuid_generator {
|
namespace uuid_generator {
|
||||||
|
|
Loading…
Reference in New Issue