MCPcopy Create free account
hub / github.com/baidu/tera / SetNotifyCallBack

Method SetNotifyCallBack

src/observer/executor/notification_impl.cc:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void NotificationImpl::SetNotifyCallBack(Notification::Callback callback) {
70 if (notify_cell_->notify_transaction == NULL) {
71 notify_callback_ = callback;
72 } else {
73 LOG(ERROR) << "Support notify callback only when TransactionType = kNoneTransaction";
74 abort();
75 }
76}
77
78void NotificationImpl::SetNotifyContext(void* context) { notify_context_ = context; }
79

Callers 2

OnNotifyMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64