~ubuntu-branches/ubuntu/quantal/libcm/quantal

« back to all changes in this revision

Viewing changes to src/waittest.c

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier, Josselin Mouette, Loic Minier
  • Date: 2008-05-26 14:43:19 UTC
  • mfrom: (3.1.4 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080526144319-ddwovigo7i925ewr
Tags: 0.1.1-4
[ Josselin Mouette ]
* Allow libgl-dev and libglu-dev as alternative dependencies for
  libcm-dev. Closes: #478887.

[ Loic Minier ]
* Don't copy config.guess/.sub after unpatch in clean; should avoid having
  them in the .diff.gz -- not needed as we always update them after patching
  anyway -- and should fix conversion to source format 3.0; closes: #482728.
* Stop shipping *.la files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "ws.h"
 
2
#include "wsint.h"
 
3
 
 
4
int
 
5
main ()
 
6
{
 
7
    WsDisplay *dpy1, *dpy2;
 
8
    WsSyncCounter *counter1, *counter2;
 
9
 
 
10
    g_type_init ();
 
11
    
 
12
    dpy1 = ws_display_new (NULL);
 
13
    dpy2 = ws_display_new (NULL);
 
14
 
 
15
    ws_display_init_sync (dpy1);
 
16
    ws_display_init_sync (dpy2);
 
17
    
 
18
    counter1 = ws_sync_counter_new (dpy1, 10);
 
19
    counter2 = ws_sync_counter_ensure (dpy2, WS_RESOURCE_XID (counter1));
 
20
 
 
21
    ws_display_sync (dpy1);
 
22
    
 
23
    ws_sync_counter_await (counter1, 11);
 
24
 
 
25
    ws_sync_counter_change (counter2, 1);
 
26
 
 
27
    g_print ("value: %lld\n", ws_sync_counter_query_value (counter2));
 
28
    
 
29
    ws_display_sync (dpy1);
 
30
 
 
31
    g_print ("success\n");
 
32
    return 0;
 
33
}