~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to gio/gasyncresult.c

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: Alexander Larsson <alexl@redhat.com>
21
21
 */
22
22
 
23
 
#include <config.h>
 
23
#include "config.h"
24
24
#include "gasyncresult.h"
25
25
#include "glibintl.h"
26
26
 
115
115
GType
116
116
g_async_result_get_type (void)
117
117
{
118
 
  static GType async_result_type = 0;
 
118
  static volatile gsize g_define_type_id__volatile = 0;
119
119
 
120
 
  if (! async_result_type)
 
120
  if (g_once_init_enter (&g_define_type_id__volatile))
121
121
    {
122
 
      static const GTypeInfo async_result_info =
 
122
      const GTypeInfo async_result_info =
123
123
      {
124
124
        sizeof (GAsyncResultIface), /* class_size */
125
125
        g_async_result_base_init,   /* base_init */
131
131
        0,              /* n_preallocs */
132
132
        NULL
133
133
      };
134
 
 
135
 
      async_result_type =
 
134
      GType g_define_type_id =
136
135
        g_type_register_static (G_TYPE_INTERFACE, I_("GAsyncResult"),
137
136
                                &async_result_info, 0);
138
137
 
139
 
      g_type_interface_add_prerequisite (async_result_type, G_TYPE_OBJECT);
 
138
      g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_OBJECT);
 
139
 
 
140
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
140
141
    }
141
142
 
142
 
  return async_result_type;
 
143
  return g_define_type_id__volatile;
143
144
}
144
145
 
145
146
static void