-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
565577f
commit fa5b04e
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Author: likepeng <[email protected]> | |
#include <thread> | ||
#include <iostream> | ||
|
||
#include "myframe/export.h" | ||
#include "export.h" | ||
#include "myframe/msg.h" | ||
#include "myframe/actor.h" | ||
#include "myframe/worker.h" | ||
|
@@ -54,7 +54,7 @@ class @template_name@Worker : public myframe::Worker { | |
}; | ||
|
||
/* create actor instance */ | ||
extern "C" MYFRAME_EXPORT std::shared_ptr<myframe::Actor> actor_create( | ||
extern "C" MYFRAME_SUBMODULE_EXPORT std::shared_ptr<myframe::Actor> actor_create( | ||
const std::string& actor_name) { | ||
if (actor_name == "@template_name@") { | ||
return std::make_shared<@template_name@Actor>(); | ||
|
@@ -63,7 +63,7 @@ extern "C" MYFRAME_EXPORT std::shared_ptr<myframe::Actor> actor_create( | |
} | ||
|
||
/* create worker instance */ | ||
extern "C" MYFRAME_EXPORT std::shared_ptr<myframe::Worker> worker_create( | ||
extern "C" MYFRAME_SUBMODULE_EXPORT std::shared_ptr<myframe::Worker> worker_create( | ||
const std::string& worker_name) { | ||
if (worker_name == "@template_name@") { | ||
return std::make_shared<@template_name@Worker>(); | ||
|