Skip to content

Single thread signal and signal slot implementation

Notifications You must be signed in to change notification settings

MemeTao/sigslots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

sigslots项目说明

class Send{
    Send(){}
    Signal<int,double> signal_;
};
class Recive : public Slots{
    Recive(){}
    void rec(int i,double d){
        std::cout<<"i:"<<i<<",d:"<<d<<std::endl;
    }
};
int main()
{
    Send src;
    Recive handle;
    src.signal_.connect<Recive>(&handle,&Recive::rec);
    src.signal_(2,3);
    return 0;
}

About

Single thread signal and signal slot implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages