MySQL++

Check-in [a014eece1d]
Login

Check-in [a014eece1d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Squished Clang complaint in pedantic builds about beemutex's pmutex_ private member being unused when thread-awareness is not enabled.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a014eece1db78b1ca35b792b540a97d631f30620df56d02c2d233c4317a57925
User & Date: tangent 2018-07-27 05:00:28.948
Context
2018-07-27
05:05
Removed lib/ssqls.h. Shouldn't have been checked in: it's generated by ssqls.pl. check-in: 597de1f616 user: tangent tags: trunk
05:00
Squished Clang complaint in pedantic builds about beemutex's pmutex_ private member being unused when thread-awareness is not enabled. check-in: a014eece1d user: tangent tags: trunk
04:45
Modified the "most economically valuable" stuff in the userman's Unicode chapter to handle the "except for emoji" case. check-in: 0bd33dc4fc user: tangent tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to lib/beemutex.cpp.
60
61
62
63
64
65
66


67
68
69
70
71
72
73
#	endif
#endif


BeecryptMutex::BeecryptMutex() MAY_THROW(MutexFailed)
#if defined(ACTUALLY_DOES_SOMETHING)
	: pmutex_(new bc_mutex_t)


#endif
{
#if defined(MYSQLPP_PLATFORM_WINDOWS)
	*impl_ptr(pmutex_) = CreateMutex((LPSECURITY_ATTRIBUTES) 0, FALSE,
			(LPCTSTR) 0);
	if (!impl_val(pmutex_))
		throw MutexFailed("CreateMutex failed");







>
>







60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#	endif
#endif


BeecryptMutex::BeecryptMutex() MAY_THROW(MutexFailed)
#if defined(ACTUALLY_DOES_SOMETHING)
	: pmutex_(new bc_mutex_t)
#else
	: pmutex_(0)
#endif
{
#if defined(MYSQLPP_PLATFORM_WINDOWS)
	*impl_ptr(pmutex_) = CreateMutex((LPSECURITY_ATTRIBUTES) 0, FALSE,
			(LPCTSTR) 0);
	if (!impl_val(pmutex_))
		throw MutexFailed("CreateMutex failed");
94
95
96
97
98
99
100


101
102
103
104
105
106
107
#	elif HAVE_PTHREAD
		pthread_mutex_destroy(impl_ptr(pmutex_));
#	elif HAVE_SYNCH_H
		mutex_destroy(impl_ptr(pmutex_));
#	endif

	delete impl_ptr(pmutex_);


#endif
}


void
BeecryptMutex::lock() MAY_THROW(MutexFailed)
{







>
>







96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#	elif HAVE_PTHREAD
		pthread_mutex_destroy(impl_ptr(pmutex_));
#	elif HAVE_SYNCH_H
		mutex_destroy(impl_ptr(pmutex_));
#	endif

	delete impl_ptr(pmutex_);
#else
    (void)pmutex_;
#endif
}


void
BeecryptMutex::lock() MAY_THROW(MutexFailed)
{