Click here to Skip to main content
11,580,081 members (73,972 online)
Click here to Skip to main content

A synchronous observer of asynchronous events

, 13 Nov 2012 BSD 6K 74 10
In this article, we will write a simple multi-threaded example implementation of the Observer pattern, and show how to re-synchronise a past event to look current. Then we’ll demonstrate a technique to treat future events like they’re current, too.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The BSD License

Share

About the Author

Orjan Westin
United Kingdom United Kingdom
Orjan has worked as a professional developer - in Sweden and England - since 1993, using a wide range of languages (C++, Pascal, Delphi, C, C#, Visual Basic, PHP, Python and x86 assembler), but tends to return to C++.

| | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 13 Nov 2012
Article Copyright 2012 by Orjan Westin
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid