It is currently Sun May 28, 2017 8:54 pm

All times are UTC - 5 hours




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Shader VMK 98 - Volitile Locker
PostPosted: Sun Sep 06, 2015 9:12 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1094
Location: Ontario Canada
Since we can now have our games run in multiple threads it is important to synchronize data between threads properly. In this video I show how to create a volitile locking class to ensure volitile variables are properly synchronized.


Offline
 Profile  
 
 Post subject: Re: Shader VMK 98 - Volitile Locker
PostPosted: Mon Sep 07, 2015 1:25 pm 

Joined: Sat Aug 16, 2008 7:58 am
Posts: 447
Very easy to implement, not all too hard to understand and I like the fact that we begin to cover another important key word within the C++ language (volatile). This class is very similar to the BlockThread class except that it is more generic and must be used with a class object. This technique can be very handy in all types of applications.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron