Matthias Clasen
10d86cda02
Move GStringChunk into its own files
2011-10-01 23:38:23 -04:00
Matthias Clasen
0e8bcc3ed7
Move GString docs inline
2011-10-01 23:27:45 -04:00
Matthias Clasen
459b14d89a
GString: cosmetic cleanups
2011-10-01 23:23:40 -04:00
Matthias Clasen
7154d44c5c
Move file utility docs inline
2011-10-01 23:03:09 -04:00
Matthias Clasen
ca77b0e252
Move string utility docs inline
2011-10-01 22:48:27 -04:00
Matthias Clasen
793ff83527
Move test docs inline
2011-10-01 22:00:41 -04:00
Matthias Clasen
9d3b37ac3f
Move keyfile docs inline
2011-10-01 21:03:14 -04:00
Matthias Clasen
3d814e7a2a
GAsyncQueue: simplify an internal function
...
g_cond_timed_wait() behaves like g_cond_wait() when given
NULL, so no need have different branches for that in
g_async_queue_pop_intern_unlocked().
2011-10-01 20:22:47 -04:00
Matthias Clasen
8c5400ff45
GAsyncQueue: internal cleanup
...
Turn the 'try' parameter of g_async_queue_pop_intern_unlocked
into a 'wait', for better alignment with the GCond api.
2011-10-01 20:22:47 -04:00
Matthias Clasen
793cf54275
GAsyncQueue: embed the GCond
...
Use g_cond_init/clear, now that we have them.
2011-10-01 20:22:46 -04:00
Matthias Clasen
ef08aa786b
GAsyncQueue: Cosmetic fixes
...
Mostly doc formatting and whitespace fixes.
2011-10-01 20:22:46 -04:00
Matthias Clasen
93abf20d3b
GAsyncQueue: Move private API to a private header
2011-10-01 20:22:46 -04:00
Matthias Clasen
b17b02da79
GThreadPool: cosmetic cleanups
...
Mostly documentation and formatting trivial, but also add
boolean return types to GError taking functions.
2011-10-01 20:22:46 -04:00
Matthias Clasen
81e161edf2
GThread: cosmetic fix
...
Explicitly include gthread.h, don't rely on gthreadprivate.h
to pull it in.
2011-10-01 20:22:45 -04:00
Matthias Clasen
b4dc4902c6
Mark g_thread_create_with_stack_size as new API
2011-10-01 13:47:09 -04:00
Jasper Lievisse Adriaanse
e147d7aa2f
Fix URL to strlcpy(3) manpage in comment.
2011-10-01 10:46:52 +02:00
Simon McVittie
c48a0d8813
markup-subparser test: use a real GError domain
...
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=660371
2011-09-30 13:17:27 +01:00
Matthias Clasen
cde8cf16fa
Some more gthread reshuffling
2011-09-29 20:23:19 -04:00
Dan Winship
f992c240e8
gthread: remove a stray reference to GStaticMutex
2011-09-29 09:59:15 -04:00
Dan Winship
0f4b278a4b
update .gitignores
2011-09-28 12:20:09 -04:00
Dan Winship
51166d0127
Add thread-safety warnings to the g_setenv() and g_unsetenv() docs
...
https://bugzilla.gnome.org/show_bug.cgi?id=659326
2011-09-27 10:30:39 -04:00
Ryan Lortie
6bd959b727
glib tests: Compile new thread tests on win32
...
They accidentally got added inside of a 'if OS_UNIX'. Move them out.
2011-09-26 09:05:53 -04:00
Ryan Lortie
fdc594e963
winxp threads: detect SRWLock emulation reentrancy
...
We lack SRWLock on Windows XP, so we use CRITICAL_SECTION to emulate it
there. SRWLock is non-recursive, but CRITICAL_SECTION will happily
allow itself to be acquired multiple times by the same thread.
We need to detect if our second acquire succeeded because of the
recursive nature of CRITICAL_SECTION. In the case of a _lock()
operation, we would normally have deadlocked, so abort. In the case of
a _trylock() operation, we need to ensure that FALSE is properly
returned.
Problem caught by Matthias Clasen and Chun-wei Fan.
https://bugzilla.gnome.org/show_bug.cgi?id=660096
2011-09-26 08:54:51 -04:00
Stef Walter
5a95e19a46
gvariant: Add g_variant_get_fixed_array()
...
Using g_variant_new_from_data() for creating new byte arrays is non-obvious.
This patch adds a g_variant_new_fixed_array() function.
https://bugzilla.gnome.org/show_bug.cgi?id=659923
2011-09-25 07:57:26 +02:00
Matthias Clasen
81e395b00b
More GThread docs tweaks
2011-09-25 01:32:41 -04:00
Matthias Clasen
900c467fd0
Move GThread docs around
2011-09-25 01:01:00 -04:00
Matthias Clasen
db04f59780
Move includes to the top of the file
2011-09-25 01:01:00 -04:00
Matthias Clasen
0ea89987e2
Move deprecated GThread functions to a separate file
2011-09-25 01:01:00 -04:00
Matthias Clasen
e34861da08
GThread: more doc updates
2011-09-25 01:01:00 -04:00
Matthias Clasen
4e44e23517
Drop G_THREADS_IMPL_NONE from the docs
...
GLib can no longer be built without thread support.
2011-09-25 01:00:59 -04:00
Chun-wei Fan
8f340e2d75
Fix warning/error C4013 (implicit declarations)
...
-Include gthread.h in gregex.c as g_once_init_enter and g_once_init_leave
are used.
-Define prototype for g_thread_DllMain in gthreadprivate.h for Windows
2011-09-25 09:07:59 +08:00
Chun-wei Fan
2b391940c0
gthread.c: Declare variable at start of block
...
This is so that C89 compilers will not complain.
2011-09-25 09:07:37 +08:00
Matthias Clasen
a485a0e565
Document G_THREADS_IMPL_WIN32
2011-09-24 19:04:46 -04:00
Matthias Clasen
d6b0af99d7
GThread doc additions
2011-09-24 19:01:02 -04:00
Matthias Clasen
df9e5c2435
Fix an uninialized variable warning
2011-09-24 19:01:02 -04:00
Matthias Clasen
cf9623767a
Add a testcase for bug 659866
...
Mere inclusion of glib headers should not require you to define
any XYZ_SOURCE macros.
2011-09-24 00:39:59 -04:00
Matthias Clasen
e1f68c1292
Add a test for GCond
2011-09-23 23:38:26 -04:00
Matthias Clasen
a118313599
Add a nontrivial read-write lock test
2011-09-23 22:07:32 -04:00
Matthias Clasen
158a0366be
Add GOnce tests
2011-09-23 21:19:53 -04:00
Matthias Clasen
dd002113f1
Make the rec mutex test a little more verbose
2011-09-23 21:11:10 -04:00
Matthias Clasen
cf020d8250
Add a non-trivial GRWLock test
...
This one tests that the writer lock behaves like a mutex.
Adapted from the corresponding test in GMutex.
2011-09-23 07:25:07 -04:00
Matthias Clasen
0a9885ebd8
Add a non-trivial GRecMutex test
...
Adapted from the corresponding GMutex test.
2011-09-23 07:25:07 -04:00
Matthias Clasen
de39df9dc1
Remove an unused variable
2011-09-23 07:25:06 -04:00
Matthias Clasen
798a7d5abe
Add some more rw lock tests
...
These test some simple mixed reader/writer api usage.
2011-09-23 06:31:59 -04:00
Matthias Clasen
81b3708184
Add a mutex test
...
This tests that mutexes do what they are supposed to do.
Copied from a similar test for bitlocks in gthread/tests/bitlock.c.
2011-09-23 06:31:59 -04:00
Matthias Clasen
4f3026ea23
Add headers
2011-09-22 22:45:47 -04:00
Matthias Clasen
d4d203e3cb
Fix g_rwlock_{writer,reader}_trylock
2011-09-22 22:45:47 -04:00
Matthias Clasen
ff13913537
Add basic tests for GRWLock
...
Just basic api usage, no functional test cases yet.
2011-09-22 22:45:47 -04:00
Chun-wei Fan
b2717740a2
VS support updates
...
-Fix GLib project/filter files generation as some source items are under
the "deprecated" subfolder, and filter out the gthread-*.c
-Explicitly specify gthread-win32.c in the GLib project/filter file
templates, since tarballs are done on Linux.
-Don't define g_static_mutex_get_mutex in the pregenerated
glibconfig.h.win32(.in) as it is defined in deprecated/gthread.h for Windows
2011-09-23 10:48:25 +08:00
Matthias Clasen
9de564bf1f
Fix g_rec_mutex_trylock
2011-09-22 21:58:55 -04:00