Observer Pattern

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
iblues1976
Gnome
Posts: 379
Joined: Fri Sep 16, 2011 4:54 pm

Observer Pattern

Post by iblues1976 » Thu Feb 12, 2015 5:18 pm

Hi,

I'm working on a new framework for input. Based on my previous experiences, I decided to write a new one from scratch. In the past, I have used the observer pattern a lot. However, it turned out, once I added threading to the program, it complicated matters a lot.

If I don't use the observer patter, what alternative do I have? Callback events? What are you guys using?

Thanks,
0 x

User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
Contact:

Re: Observer Pattern

Post by Klaim » Thu Feb 12, 2015 8:36 pm

The problem is not the pattern. The problem is either your implementation, your use case or the specific combination of both.


I designed and implemented a large variety of observer-pattern code and trust me when I say that no implementation match all needs.
0 x

Post Reply