~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to storage/innobase/os/os0sync.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-16 20:07:10 UTC
  • mto: (1.3.9 vivid-proposed)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20150416200710-pcrsa022082zj46k
Tags: upstream-5.6.24
ImportĀ upstreamĀ versionĀ 5.6.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1995, 2011, Oracle and/or its affiliates. All Rights Reserved.
 
3
Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
234
234
}
235
235
 
236
236
/*********************************************************//**
237
 
Wakes one thread waiting for condition variable */
238
 
UNIV_INLINE
239
 
void
240
 
os_cond_signal(
241
 
/*==========*/
242
 
        os_cond_t*      cond)   /*!< in: condition variable. */
243
 
{
244
 
        ut_a(cond);
245
 
 
246
 
#ifdef __WIN__
247
 
        ut_a(wake_condition_variable != NULL);
248
 
        wake_condition_variable(cond);
249
 
#else
250
 
        ut_a(pthread_cond_signal(cond) == 0);
251
 
#endif
252
 
}
253
 
 
254
 
/*********************************************************//**
255
237
Destroys condition variable */
256
238
UNIV_INLINE
257
239
void