Source Activity

Syndicate content
Haiku's main repository
Updated: 20 min 42 sec ago

docs/user: BAlert: Fix incorrect ::TextView() docs.

Tue, 2015-08-25 14:25
TextView() returns *the* BTextView the BAlert is using, not a new TextView with the contents of the BAlert (which is what this seemed to imply). TextView() returns *the* BTextView the BAlert is using, not a new TextView with the contents of the BAlert (which is what this seemed to imply).
Categories: Development

radeon_hd: Add missing id for Radeon HD 8490

Tue, 2015-08-25 10:38
Categories: Development

B_BIG_SYNTH_FILE and B_LITTLE_SYNTH_FILE are deprecated.

Mon, 2015-08-24 15:18
Small style change in midi headers. Small style change in midi headers.
Categories: Development

MidiSettingsView: renamed box label

Mon, 2015-08-24 08:23
Renamed box label from "SoundFont" to "Available SoundFonts", hopefully improves the user experience by making it clearer that this is a list of the available soundfonts. Renamed box label from "SoundFont" to "Available SoundFonts", hopefully improves the user experience by making it clearer that this is a list of the available soundfonts.
Categories: Development

BBitmap: Archive the data also if "deep" is not set

Mon, 2015-08-24 08:21
Fixes #12326 Fixes #12326
Categories: Development

BSoftSynth: Fixed auto selection of soundfont.

Mon, 2015-08-24 08:04
When no midi settings file was available, BSoftSynth should use the well known TimGM6mb.sf2 soundfont. This wasn't working, since the code looked in the wrong path (we have to append "synth" to the path returned by find_directory). In case this SF is not present, now we try harder not to fail, and look for any soundfont available in the system and user directories. Fixes ticket #12325 although the selected soundfont is not written to the user settings file. When no midi settings file was available, BSoftSynth should use the well known TimGM6mb.sf2 soundfont. This wasn't working, since the code looked in the wrong path (we have to append "synth" to the path returned by find_directory). In case this SF is not present, now we try harder not to fail, and look for any soundfont available in the system and user directories. Fixes ticket #12325 although the selected soundfont is not written to the user settings file.
Categories: Development

Improved comment. Added TODO

Mon, 2015-08-24 08:03
Categories: Development

Fix naming

Mon, 2015-08-24 07:33
Categories: Development

launch_daemon: Remove extra quoting around env variables.

Sun, 2015-08-23 13:02
The extra quotes aren't needed and cause problems when not parsed through a shell. For example LD_PRELOAD which is handled by the runtime_loader directly failed to work as there was no way to remove the extra single quotes. Note that quotes and single quotes can still be added to the variables through respective quoting in the driver settings syntax. The extra quotes aren't needed and cause problems when not parsed through a shell. For example LD_PRELOAD which is handled by the runtime_loader directly failed to work as there was no way to remove the extra single quotes. Note that quotes and single quotes can still be added to the variables through respective quoting in the driver settings syntax.
Categories: Development

libroot_debug: Replace two more uses of printf in guarded heap.

Sun, 2015-08-23 11:19
Use the internal print_stdout() instead as done when printing the stack traces. Use the internal print_stdout() instead as done when printing the stack traces.
Categories: Development

libroot_debug: Track freeing thread in guarded heap separatley.

Sun, 2015-08-23 11:10
Previously the thread member was overwritten with the freeing thread when a page was freed, leading to confusion when hitting unallocated pages due to the debugger message still stating "allocated by thread". Track the freeing thread separately as it might be interesting to know both, which thread initially allocated and which thread eventually freed an allocation. Previously the thread member was overwritten with the freeing thread when a page was freed, leading to confusion when hitting unallocated pages due to the debugger message still stating "allocated by thread". Track the freeing thread separately as it might be interesting to know both, which thread initially allocated and which thread eventually freed an allocation.
Categories: Development

registrar: Fix race condition on MimeUpdateThread termination.

Sun, 2015-08-23 09:48
When the MimeUpdateThread is done, it marks itself as finished and notifies the thread manager to clean up finished threads. Since multiple such threads might finish at the same time and trigger the cleanup notification, other threads that already marked themselves finished but haven't actually exited yet might already be deleted and removed. This would then lead to a use-after-free when they subsequently tried to send their own cleanup message. To solve the race condition, the thread manager will now wait for the thread to actually exit before cleaning it up. The introduction of the launch_daemon has made this race condition more likely due to more applications starting in parallel, each triggering a CreateAppMetaMimeThread which is a subclass of MimeUpdateThread. This commit might therefore fix #12237. When the MimeUpdateThread is done, it marks itself as finished and notifies the thread manager to clean up finished threads. Since multiple such threads might finish at the same time and trigger the cleanup notification, other threads that already marked themselves finished but haven't actually exited yet might already be deleted and removed. This would then lead to a use-after-free when they subsequently tried to send their own cleanup message. To solve the race condition, the thread manager will now wait for the thread to actually exit before cleaning it up. The introduction of the launch_daemon has made this race condition more likely due to more applications starting in parallel, each triggering a CreateAppMetaMimeThread which is a subclass of MimeUpdateThread. This commit might therefore fix #12237.
Categories: Development

PowerStatus: style fixes.

Sun, 2015-08-23 07:19
Categories: Development

registrar: Whitespace and style cleanup only.

Sat, 2015-08-22 21:05
Generally this code still looks horrible (both from a style and from a complexity point of view) and should eventually be reworked. Generally this code still looks horrible (both from a style and from a complexity point of view) and should eventually be reworked.
Categories: Development

launch_daemon: Add env vars from sourced files to correct list.

Sat, 2015-08-22 15:17
The environment variables were always added to the static environment list instead of the one supplied as argument. This worked for targets, as there the scripts are evaluated before the static environment is used. For services and jobs this isn't the case, causing sourced environment variables to be missing. The environment variables were always added to the static environment list instead of the one supplied as argument. This worked for targets, as there the scripts are evaluated before the static environment is used. For services and jobs this isn't the case, causing sourced environment variables to be missing.
Categories: Development